这是我得到的错误信息,当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
。
发布于 2021-09-10 23:13:03
如果你已经排除了管理员特权的问题,那么这是另一个程序-如果一个杀毒软件正在运行,你有没有尝试过禁用它?
之后,如果问题仍然存在,我会进入任务管理器并停止任何多余的进程。
如果在那之后你仍然有这个问题,我会全局重新安装pm2
https://stackoverflow.com/questions/69117069
复制相似问题