解决方式:
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