重置电脑后安装了自定义路径node_cache和node_global,然后无法使用npm 命令行启动项目的vue,完整报错如下:
npm WARN read-shrinkwrap This version of npm is compatible with lockfileVersion@1, but package-lock.json was generated for lockfileVersion@2. I'll try t
o do my best with it!
npm ERR! code EPERM
npm ERR! syscall mkdir
npm ERR! path D:\java\java-EE\Node.js\node_cache\_locks
npm ERR! errno -4048
npm ERR! Error: EPERM: operation not permitted, mkdir 'D:\java\java-EE\Node.js\node_cache\_locks'
npm ERR! [Error: EPERM: operation not permitted, mkdir 'D:\java\java-EE\Node.js\node_cache\_locks'] {
npm ERR! errno: -4048,
npm ERR! code: 'EPERM',
npm ERR! syscall: 'mkdir',
npm ERR! path: 'D:\\java\\java-EE\\Node.js\\node_cache\\_locks'
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.
#求一个解决方法。谢谢。