anjular2 报错

npm ERR!  { Error: EPERM: operation not permitted, lstat 'D:\mywork\angulars\angularjsTest\my-app\node_modules\fsevents\node_modules\getpass\node_modules'
npm ERR!   stack: 'Error: EPERM: operation not permitted, lstat \'D:\\mywork\\angulars\\angularjsTest\\my-app\\node_modules\\fsevents\\node_modules\\getpass\\node_modules\'',
npm ERR!   errno: -4048,
npm ERR!   code: 'EPERM',
npm ERR!   syscall: 'lstat',
npm ERR!   path: 'D:\\mywork\\angulars\\angularjsTest\\my-app\\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\87719\AppData\Roaming\npm-cache\_logs\2018-03-25T10_05_50_796Z-debug.log


是权限问题,cmd 管理员的权限运行

输入npm cache clean --force

然后再npm install

好了


你可能感兴趣的:(angulars)