You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 11, 2022. It is now read-only.
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).
The text was updated successfully, but these errors were encountered:
I'm opening this issue because:
What's going wrong?
when i do
npm install -g create-react-app
and then i try to run the commandcreate-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.0node -v
prints:6.11.5npm config get registry
prints:The text was updated successfully, but these errors were encountered: