Vue packages version mismatch: 版本冲突;Error: EPERM: operation not permitted

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 -
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: -,
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\--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: -,
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
上一篇:"npm ERR! Error: EPERM: operation not permitted"问题解决


下一篇:PHP-----浅谈垃圾回收机制