Error: EPERM: operation not permitted,

npm ERR! path E:\React\ReactNativeProject\FirstApp\node_modules\fsevents\node_mo
dules\getpass\node_modules
npm ERR! code EPERM
npm ERR! errno -4048
npm ERR! syscall scandir
npm ERR! Error: EPERM: operation not permitted, scandir 'E:\React\ReactNativePro
ject\FirstApp\node_modules\fsevents\node_modules\getpass\node_modules'
npm ERR!  { Error: EPERM: operation not permitted, scandir 'E:\React\ReactNative
Project\FirstApp\node_modules\fsevents\node_modules\getpass\node_modules'
npm ERR!   stack: 'Error: EPERM: operation not permitted, scandir \'E:\\React\\R
eactNativeProject\\FirstApp\\node_modules\\fsevents\\node_modules\\getpass\\node
_modules\'',
npm ERR!   errno: -4048,
npm ERR!   code: 'EPERM',
npm ERR!   syscall: 'scandir',

npm ERR!   path: 'E:\\React\\ReactNativeProject\\FirstApp\\node_modules\\fsevent
s\\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\Administrator\AppData\Roaming\npm-cache\_logs\2018-01-06T0

 

7_47_06_683Z-debug.log

 

 

cnm,莫名其妙的错;

解决办法:第一种:删除C:\Users\用户名\.npmrc

                  第二种:遇到这种错,重新执行命令即可,不需要管它

你可能感兴趣的:(Error: EPERM: operation not permitted,)