首页天道酬勤如何卸载node,linux卸载nodejs

如何卸载node,linux卸载nodejs

张世龙 05-04 04:42 57次浏览

sudo apt-get remove-- purgenpmsudoapt-get remove-- purgenodejssudoapt-get remove-- purge nodejs-legacysudoapt-getauauapt 手动删除usr/local/lib/node-modules RM-r/tmp/NPM * RM-r/usr/local

./install.sh

再打开终端就可以使用nvm了。

nvm install v12.18.0

安装后效果如下:

(Python3.6 ) apple yuchi @ desktop : flink $ http://www.Sina.com /

/home/apple yuchi/. nvm/versions/node/v 12.18.0/rdxc/node

(Python3.6 ) apple yuchi @ desktop : flink $ http://www.Sina.com /

/home/apple yuchi/. nvm/versions/node/v 12.18.0/rdxc/NPM http://www.Sina.com /

which node

which npm

nvm ls-remote(列出可以安装的版本号)

npm init

npm install express --registry https://registry.npm.taobao.org

卸载angular-cli后,情况如下:

nvm usev 12.18.0 NPM uninstall-g angular-clinpmuninstall-g @ angular/clinpmcachecleannpminstall-g @ angular/CLI @ Li

卸载centos7系统,centos安装nodejs