转载自:https://blog.csdn.net/dong923700243/article/details/78989332
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