报错:
npm ERR! code EPERM
npm ERR! syscall mkdir
npm ERR! path D:\node.js\node_global
npm ERR! errno -4048
npm ERR! Error: EPERM: operation not permitted, mkdir ‘D:\node.js\node_global’
npm ERR! [Error: EPERM: operation not permitted, mkdir ‘D:\node.js\node_global’] {
npm ERR! errno: -4048,
npm ERR! code: ‘EPERM’,
npm ERR! syscall: ‘mkdir’,
npm ERR! path: ‘D:\node.js\node_global’
npm ERR! }
npm ERR!
npm ERR! The operation was rejected by your operating system.
npm ERR! It’s possible that the file was already in use (by a text editor or antivirus),
npm ERR! or that you lack permissions to access it.
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 directories, or try running
vue安装手脚架npm install -g @vue/cli过程报错
最新推荐文章于 2024-06-28 17:04:58 发布
在尝试使用npm全局安装vue CLI时遇到EPERM错误,错误详细信息涉及到mkdir操作权限。解决方案是检查C盘用户目录下的.npmrc文件,确保没有权限问题,然后重新运行安装命令。
摘要由CSDN通过智能技术生成