-
清除旧 的 node js , npm , nvm 的作法
https://stackoverflow.com/questions/11177954/how-do-i-completely-uninstall-node-js-and-reinstall-from-beginning-mac-os-x/11178106#11178106 -
移除 nvm 的方法:
just remove directory
rm -rf ~/.nvm
rm -rf ~/.npm
rm -rf ~/.bowervim ~/.bashrc 里要移除 source ~/.nvm
登出 terminal 再登入,下达 node -v 检查是否已更版成功 -
mkdir ~/tmp
cd ~/tmp
git clone https://github.com/tj/n
cd n
sudo make install
sudo n stable -
再依续安装下面套件
sudo npm -g install yarn
sudo yarn global add gulp
sudo yarn global add bower
如何在 Ubuntu 使用 n 来安装 node js (取代掉 nvm)
最新推荐文章于 2024-03-29 14:43:15 发布