Closed mokaleem closed 7 years ago
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.
Perfect.! Downgrading npm to version 4 solved the issue.. Thanks
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
node -v
: 6.10.2npm -v
: 5.4.2Then, specify:
Steps to Reproduce
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...
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