一、问题
环境
系统:centos 7
node :v18.16.1
npm:9.5.1
安装pm2
npm install -g pm2
npm WARN deprecated uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
changed 184 packages in 17s
12 packages are looking for funding
run `npm fund` for details
二、解决
npm install uuid@latest -g
更新成功后,继续安装pm2,也会提示:npm WARN deprecated uuid@3.4.0: Please upgrade to version 7 or higher.
其实是已经安装成功了
1、查找pm2的安装位置
/usr/local/lib/node_modules/pm2
/usr/local/lib/node_modules/pm2/lib/templates/logrotate.d/pm2
/usr/local/lib/node_modules/pm2/bin/pm2
/usr/local/lib/node_modules/pm2/pm2
2、增加pm2软链接
ln -s /usr/local/lib/node_modules/pm2/bin/pm2 /usr/local/bin
原文地址:https://blog.csdn.net/gusijin/article/details/131409178
本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。
如若转载,请注明出处:http://www.7code.cn/show_29914.html
如若内容造成侵权/违法违规/事实不符,请联系代码007邮箱:suwngjj01@126.com进行投诉反馈,一经查实,立即删除!
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。