首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >'pm2‘未被识别为内部或外部命令、可操作程序或批处理文件错误

'pm2‘未被识别为内部或外部命令、可操作程序或批处理文件错误
EN

Stack Overflow用户
提问于 2021-09-09 11:05:37
回答 1查看 50关注 0票数 0

这是我得到的错误信息,当pm2安装,试图清理缓存,也在管理模式下运行,但没有使用,可能是什么问题?可能是永远也影响它的安装?

代码语言:javascript
运行
复制
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

EN

回答 1

Stack Overflow用户

发布于 2021-09-10 23:13:03

如果你已经排除了管理员特权的问题,那么这是另一个程序-如果一个杀毒软件正在运行,你有没有尝试过禁用它?

之后,如果问题仍然存在,我会进入任务管理器并停止任何多余的进程。

如果在那之后你仍然有这个问题,我会全局重新安装pm2

票数 -1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/69117069

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档