npm i -g create-react-app not working
See original GitHub issueIs 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
node -v
: 4.6.1 and 5.5.1npm -v
: 8.9.0yarn --version
(if you use Yarn): 1.2.1 (installation works using:yarn global add create-react-app
)npm ls react-scripts
(if you haven’t ejected): not relevant as I am trying to install globally
Then, specify:
- Operating system: Windows 10
- Browser and version (if relevant): not relevant
Steps to Reproduce
- open console
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:
- Created 6 years ago
- Comments:9 (3 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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)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