【发布时间】:2021-09-09 11:05:37
【问题描述】:
这是我在安装 pm2 时收到的错误消息,尝试清理缓存并在管理员模式下运行但没有用,可能是什么问题?可能永远安装也会影响它?
npm ERR! errno: -4048,
npm ERR! code: 'EPERM',
npm ERR! syscall: 'rename',
npm ERR! path: 'D:\\Users\\xxx\\AppData\\Roaming\\npm\\node_modules\\pm2\\package.json.3819841862',
npm ERR! dest: 'D:\\Users\\xxx\\AppData\\Roaming\\npm\\node_modules\\pm2\\package.json'
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-install pm2