question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

npm i -g create-react-app not working

See original GitHub issue

Is this a bug report?

yes

Can you also reproduce the problem with npm 4.x?

Sort of: it does not work either but with different error message:

npm i -g create-react-app
npm ERR! addLocal Could not install C:\Users\alex\create-react-app
npm ERR! No name provided in package.json

Which terms did you search for in User Guide?

Scanned it and found nothing relevant to this problem.

Environment

  1. node -v: 4.6.1 and 5.5.1
  2. npm -v: 8.9.0
  3. yarn --version (if you use Yarn): 1.2.1 (installation works using: yarn global add create-react-app)
  4. npm ls react-scripts (if you haven’t ejected): not relevant as I am trying to install globally

Then, specify:

  1. Operating system: Windows 10
  2. Browser and version (if relevant): not relevant

Steps to Reproduce

  1. open console
  2. npm i -g create-react-app

Expected Behavior

Installation works

Actual Behavior

npm i -g create-react-app
npm ERR! Can't install C:\Users\alex\create-react-app: Missing package name

Reproducible Demo

No idea how to make this reproducible 😦

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
peteobriencommented, Dec 3, 2017

Quick fix here, I think probably as I had it installed from ages ago anyway: npm install -g create-react-app@latest (Does appear an npm bug)

0reactions
embashgitcommented, Sep 7, 2018

probem installing create-react-app

npm ERR! Refusing to delete C:\Users\EMBASH\AppData\Roaming\npm\create-react-app : node_modules/create-react-app/index.js symlink target is not controlled by npm C:\Users\EMBASH\AppData\Roaming\npm\node_modules\create-react-app npm ERR! File exists: C:\Users\EMBASH\AppData\Roaming\npm\create-react-app npm ERR! Move it away, and try again.

npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\EMBASH\AppData\Roaming\npm-cache_logs\2018-09-07T08_34_18 _292Z-debug.log

C:\Users\EMBASH>npm install create-react-app -g -f npm WARN using --force I sure hope you know what you are doing. npm ERR! path C:\Users\EMBASH\AppData\Roaming\npm\create-react-app npm ERR! code EEXIST npm ERR! Refusing to delete C:\Users\EMBASH\AppData\Roaming\npm\create-react-app : node_modules/create-react-app/index.js symlink target is not controlled by npm C:\Users\EMBASH\AppData\Roaming\npm\node_modules\create-react-app npm ERR! File exists: C:\Users\EMBASH\AppData\Roaming\npm\create-react-app npm ERR! Move it away, and try again.

npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\EMBASH\AppData\Roaming\npm-cache_logs\2018-09-07T08_36_39 _470Z-debug.log

Read more comments on GitHub >

github_iconTop Results From Across the Web

npx create-react-app show error when installing - Stack Overflow
Sounds like you are running npx create-react-app command in a project that already includes react. Try running npm install instead.
Read more >
create-react-app - npm
Start using create-react-app in your project by running `npm i create-react-app`. There are 131 other projects in the npm registry using ...
Read more >
"npx create-react-app my-app" stopped working in 4.0.3 #10601
Describe the bug /tmp ▷ npx create-react-app my-app You are running `create-react-app` 4.0.1, which is behind the latest release (4.0.3).
Read more >
React JS npm create react app not working error solved
How to solve npm create react app not working error in react JS is shown.
Read more >
Create React App without Create React App - Bits and Pieces
How webpack and babel work in a more practical sense; ... now running npm run build will create main.js file again but the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found