npm ERR! code EPERM
npm ERR! syscall mkdir
npm ERR! path D:\SOLF\应用\node.js\node_cache\_cacache
npm ERR! errno -4048
npm ERR! Error: EPERM: operation not permitted, mkdir 'D:\SOLF\应用\node.js\node_cache\_cacache'
npm ERR! [OperationalError: EPERM: operation not permitted, mkdir 'D:\SOLF\应用\node.js\node_cache\_cacache'] {
npm ERR! cause: [Error: EPERM: operation not permitted, mkdir 'D:\SOLF\应用\node.js\node_cache\_cacache'] {
npm ERR! errno: -4048,
npm ERR! code: 'EPERM',
npm ERR! syscall: 'mkdir',
npm ERR! path: 'D:\\SOLF\\应用\\node.js\\node_cache\\_cacache'
npm ERR! },
npm ERR! isOperational: true,
npm ERR! errno: -4048,
npm ERR! code: 'EPERM',
npm ERR! syscall: 'mkdir',
npm ERR! path: 'D:\\SOLF\\应用\\node.js\\node_cache\\_cacache'
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
npm ERR! the command again as root/Administrator.
有没小伙伴知道问题出在了哪里
第一步:npm指令清除npm缓存
npm cache clean --force
第二步:删除node_module包
rm -rf node_modules
这应该不是安装axios出现的问题,你安装其他的估计也会出现这个问题
没有权限,用管理员打开
把路径转义一下/
您好,我是有问必答小助手,您的问题已经有小伙伴帮您解答,感谢您对有问必答的支持与关注!