By accessing the website and accepting the Cookie Policy, you agree to use the cookies provided by the Site in accordance with to analyze traffic, remember your preferences, and optimize your experience.

标签 - nodejs

pm2 nodejs    2019-12-20 17:24:46    1423    0    0
apt-get install -y curl >/dev/null 2>&1
curl -sL https://deb.nodesource.com/setup_8.x | bash - >/dev/null 2>&1
apt-get install -y nodejs >/dev/null 2>&1

npm install
npm install pm2 -g

pm2 start ap
nvm nodejs    2019-04-18 10:40:48    2071    0    0

1、先卸载已经安装的 node

# 先反激活当前的活动版本
nvm deactivate
# 如果仅安装了默认版
nvm uninstall node

2、再卸载 nvm

rm -rf ~/.nvm

再删除 ~/.bashrc 文件中 export NVM_DIR= 这一行和它的下一行。

nvm nodejs    2019-04-18 10:26:40    7414    0    0

nvm 删除 移除 node.js

正常用nvm卸载node.js版本号的命令是:

nvm uninstall 6.9.2

 

但是遇到了权限问题:

file is not writable: $NVM_DIR/versions/node/v6.9.2/bin/gulp
Cannot uninstall, incorrect permissions on installation f