node.js - create-react-app crashing with error of not having permission -


when tried create react app i'm having error. please me it. tried using administrative permissions , uninstalling , re-installing nodejs still showing same error.

creating new react app in c:\users\chandan\my-app.  installing packages. might take couple of minutes. installing react, react-dom, , react-scripts...   > uglifyjs-webpack-plugin@0.4.6 postinstall c:\users\chandan\my-app\node_modules\uglifyjs-webpack-plugin > node lib/post_install.js  npm err! path c:\users\chandan\my-app\node_modules\nan\package.json npm err! code eperm npm err! errno -4048 npm err! syscall unlink npm err! error: eperm: operation not permitted, unlink 'c:\users\chandan\my-app\node_modules\nan\package.json' npm err!     @ error (native) npm err!  { error: eperm: operation not permitted, unlink 'c:\users\chandan\my-app\node_modules\nan\package.json' npm err!     @ error (native) npm err!   stack: 'error: eperm: operation not permitted, unlink \'c:\\users\\chandan\\my-app\\node_modules\\nan\\package.json\'\n    @ error (native)', npm err!   errno: -4048, npm err!   code: 'eperm', npm err!   syscall: 'unlink', npm err!   path: 'c:\\users\\chandan\\my-app\\node_modules\\nan\\package.json' } npm err! npm err! please try running command again root/administrator.  npm err! complete log of run can found in: npm err!     c:\users\chandan\appdata\roaming\npm-cache\_logs\2017-09-11t04_28_57_244z-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 my-app / c:\users\chandan done. 

clean cache using following command:

npm cache clean -f 

and uninstall create-react-app module , install again , create new app.

updated:

install latest version of npm/node , try.


Comments

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -