Skip to content

Unable to create an app using CLI #3193

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
mokaleem opened this issue Sep 26, 2017 · 2 comments
Closed

Unable to create an app using CLI #3193

mokaleem opened this issue Sep 26, 2017 · 2 comments

Comments

@mokaleem
Copy link

Is this a bug report?

I am unable to setup an environment using the CLI command given in the official page. Its been a couple of days I am trying to get it working by Googling and visiting almost all the Stackoverflow and Github links but no help. :(

Environment

  1. node -v: 6.10.2
  2. npm -v: 5.4.2

Then, specify:

  1. Operating system: Windows 10

Steps to Reproduce

  1. create-react-app app-name

Actual Behavior

D:\classes>create-react-app reactify

`Creating a new React app in D:\classes\reactify.

Installing packages. This might take a couple of minutes.
Installing react, react-dom, and react-scripts...

[email protected] postinstall D:\classes\reactify\node_modules\uglifyjs-webpack-plugin
node lib/post_install.js

npm ERR! path D:\classes\reactify\node_modules\fsevents\node_modules\getpass\node_modules
npm ERR! code EPERM
npm ERR! errno -4048
npm ERR! syscall lstat
npm ERR! Error: EPERM: operation not permitted, lstat 'D:\classes\reactify\node_modules\fsevents\node_modules\getpass\node_modules'
npm ERR! at Error (native)
npm ERR! { Error: EPERM: operation not permitted, lstat 'D:\classes\reactify\node_modules\fsevents\node_modules\getpass\node_modules'
npm ERR! at Error (native)
npm ERR! stack: 'Error: EPERM: operation not permitted, lstat 'D:\classes\reactify\node_modules\fsevents\node_modules\getpass\node_modules'\n at Error (native)',
npm ERR! errno: -4048,
npm ERR! code: 'EPERM',
npm ERR! syscall: 'lstat',
npm ERR! path: 'D:\classes\reactify\node_modules\fsevents\node_modules\getpass\node_modules' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\kaleem.m\AppData\Roaming\npm-cache_logs\2017-09-26T09_59_24_905Z-debug.log

Aborting installation.
npm install --save --save-exact --loglevel error react react-dom react-scripts has failed.

Deleting generated file... node_modules
Deleting generated file... package.json
Deleting reactify / from D:\classes
Done.

Files Attached

I've attached the log files generated with this.

2017-09-26T09_59_24_905Z-debug.log

@Timer
Copy link
Contributor

Timer commented Sep 26, 2017

Did you try clearing your npm cache?
Often these npm bugs can only be fixed by npm, so we cannot help.

My advice to you would be to downgrade to npm@4 if that works for you.

@mokaleem
Copy link
Author

Perfect.! Downgrading npm to version 4 solved the issue.. Thanks

@lock lock bot locked and limited conversation to collaborators Jan 21, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants