1、npm install vue-template-compiler@2.5.3 出现此问题
npm ERR! path G:\XXX.Web\node_modules\fsevents\node_modules npm ERR! code EPERM npm ERR! errno -4048 npm ERR! syscall lstat npm ERR! Error: EPERM: operation not permitted, lstat 'G:\XXX.Web\node_modules\fsevents\node_modules' npm ERR! { Error: EPERM: operation not permitted, lstat 'G:\XXX.Web\node_modules\fsevents\node_modules' npm ERR! stack: 'Error: EPERM: operation not permitted, lstat \'G:\\XXX.Web\\node_modules\\fsevents\\node_modules\'', npm ERR! errno: -4048, npm ERR! code: 'EPERM', npm ERR! syscall: 'lstat', npm ERR! path: 'G:\\XXX.Web\\node_modules\\fsevents\\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-03-15T07_11_27_516Z-debug.log
解决方式:
npm install weex-toolkit -g
2、Error: EPERM: operation not permitted
npm ERR! Error: EPERM: operation not permitted, scandir 'G:\XXX.Web\node_modules\fsevents\node_modules\getpass\node_modules' npm ERR! { Error: EPERM: operation not permitted, scandir 'G:\XXX.Web\node_modules\fsevents\node_modules\getpass\node_modules' npm ERR! stack: 'Error: EPERM: operation not permitted, scandir \'G:\\XXX.Web\\node_modules\\fsevents\\node_modules\\getpass\\node_modules\'', npm ERR! errno: -4048, npm ERR! code: 'EPERM', npm ERR! syscall: 'scandir', npm ERR! path: 'G:\\XXX.Web\\node_modules\\fsevents\\node_modules\\getpass\\node_modules' }
解决方式:
npm cache clean --force