当前位置:网站首页>npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.npm ER

npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.npm ER

2022-06-26 09:32:00 郭宝

背景:

在通过npm安装@vue-cli时,出现了如下报错信息

npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.
npm ERR! code EACCES
npm ERR! syscall mkdir
npm ERR! path /usr/local/lib/node_modules/@vue
npm ERR! errno -13
npm ERR! Error: EACCES: permission denied, mkdir '/usr/local/lib/node_modules/@vue'
npm ERR!  [Error: EACCES: permission denied, mkdir '/usr/local/lib/node_modules/@vue'] {
npm ERR!   errno: -13,
npm ERR!   code: 'EACCES',
npm ERR!   syscall: 'mkdir',
npm ERR!   path: '/usr/local/lib/node_modules/@vue'
npm ERR! }
npm ERR! 
npm ERR! The operation was rejected by your operating system.
npm ERR! It is likely you do not have the permissions to access this file as the current user
npm ERR! 
npm ERR! If you believe this might be a permissions issue, please double-check the
npm ERR! permissions of the file and its containing directo
原网站

版权声明
本文为[郭宝]所创,转载请带上原文链接,感谢
https://guobao.blog.csdn.net/article/details/125461246