搞不懂了,再重新运行脚本也不行了
[adcoderpoiub@s7]:<~>$ bash <(curl -s https://raw.githubusercontent.com/k0baya/alist_repl/main/serv00/install-pm2.sh)
npm error config prefix cannot be changed from project config: /usr/home/adcoderpoiub/.npmrc.
npm error code ENOTEMPTY
npm error syscall rename
npm error path /usr/home/adcoderpoiub/.npm-global/lib/node_modules/pm2
npm error dest /usr/home/adcoderpoiub/.npm-global/lib/node_modules/.pm2-X9RIxb7j
npm error errno -66
npm error ENOTEMPTY: directory not empty, rename '/usr/home/adcoderpoiub/.npm-global/lib/node_modules/pm2' -> '/usr/home/adcoderpoiub/.npm-global/lib/node_modules/.pm2-X9RIxb7j'
npm error A complete log of this run can be found in: /home/adcoderpoiub/.npm/_logs/2024-07-27T05_34_32_284Z-debug-0.log
pm2 成功安装,断开 SSH 连接后重连生效。请不要删除或覆盖 ~/.profile 配置文件
形如 npm error config prefix cannot be changed from project config 的日志不会影响 pm2 的使用,请无需在意。
抄袭且不标注出处可耻!
请认准原作者:https://saika.us.kg/
[adcoderpoiub@s7]:<~>$