npm ERR! path /usr/local/lib/node_modules/@vue
npm ERR! code EACCES
npm ERR! errno -13
npm ERR! syscall access
npm ERR! Error: EACCES: permission denied, access '/usr/local/lib/node_modules/@vue'
npm ERR! { [Error: EACCES: permission denied, access '/usr/local/lib/node_modules/@vue']
npm ERR! stack:
npm ERR! 'Error: EACCES: permission denied, access '/usr/local/lib/node_modules/@vue'',
npm ERR! errno: -13,
npm ERR! code: 'EACCES',
npm ERR! syscall: 'access',
npm ERR! path: '/usr/local/lib/node_modules/@vue' }
解决方法,运行:sudo chown -R $USER /usr/local
再重新安装vue-cli: npm install --global vue-cli@2.9