Skip to content
This repository has been archived by the owner on Aug 11, 2022. It is now read-only.

npm install -g create-react-app unexpected error #18981

Open
9 tasks
LeonelAV opened this issue Oct 27, 2017 · 0 comments
Open
9 tasks

npm install -g create-react-app unexpected error #18981

LeonelAV opened this issue Oct 27, 2017 · 0 comments
Labels

Comments

@LeonelAV
Copy link

LeonelAV commented Oct 27, 2017

I'm opening this issue because:

  • [x ] npm is producing an incorrect install.

What's going wrong?

when i do npm install -g create-react-app and then i try to run the command create-react-app my-app i get the following error:

`Aborting installation.
Unexpected error. Please report it as a bug:
{ Error: Cannot find module 'C:\Users\leonel\Desktop\my-app\node_modules\react-scripts\package.json'
at Function.Module._resolveFilename (module.js:469:15)
at Function.Module._load (module.js:417:25)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at checkNodeVersion (C:\Users\leonel\AppData\Roaming\npm\node_modules\create-react-app\createReactApp.js:476:23)
at getPackageName.then.then.then.packageName (C:\Users\leonel\AppData\Roaming\npm\node_modules\create-react-app\createReactApp.js:283:7)
at process._tickCallback (internal/process/next_tick.js:109:7) code: 'MODULE_NOT_FOUND' }

Deleting generated file... package.json
Deleting my-app / from C:\Users\leonel\Desktop
Done.`

When i try to create my react app folder in mais Desktop folder i realize that the node_modules folder is created in another folder that i have, called projects.

How can the CLI team reproduce the problem?

supporting information:

  • npm -v prints:5.5.0
  • node -v prints:6.11.5
  • npm config get registry prints:
  • Windows, OS X/macOS, or Linux?: windows 10
  • Network issues:
    • Geographic location where npm was run:
    • I use a proxy to connect to the npm registry.
    • I use a proxy to connect to the web.
    • I use a proxy when downloading Git repos.
    • I access the npm registry via a VPN
    • I don't use a proxy, but have limited or unreliable internet access.
  • Container:
    • I develop using Vagrant on Windows.
    • I develop using Vagrant on OS X or Linux.
    • I develop / deploy using Docker.
    • I deploy to a PaaS (Triton, Heroku).
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants