如何徹底卸載Node.js,而後從頭開始從新安裝(Mac OS X)

問題:

My version of node is always v0.6.1-pre even after I install brew node and NVM install v0.6.19. 個人節點版本始終是v0.6.1-pre,即便我安裝了brew節點而且NVM也安裝了v0.6.19。 node

My node version is: 個人節點版本是: npm

node -v
v0.6.1-pre

NVM says this (after I install a version of node for the first time in one bash terminal): NVM這樣說(我在一個bash終端中第一次安裝了一個版本的節點以後): bash

nvm ls
v0.6.19
current:    v0.6.19

But when I restart bash, this is what I see: 可是當我從新啓動bash時,這是我看到的: ide

nvm ls
v0.6.19
current:    v0.6.1-pre
default -> 0.6.19 (-> v0.6.19)

So where is this phantom node 0.6.1-pre version and how can I get rid of it? 那麼這個幻影節點0.6.1-pre版本在哪裏,我該如何擺脫它? I'm trying to install libraries via NPM so that I can work on a project. 我正在嘗試經過NPM安裝庫,以即可以在項目上工做。 this

I tried using BREW to update before NVM, using "brew update" and "brew install node". 我嘗試使用BREW在NVM以前進行更新,使用「 brew update」和「 brew install node」。 I've tried deleting the "node" directory in my /usr/local/include and the "node" and "node_modules" in my "/usr/local/lib". 我嘗試刪除/ usr / local / include中的「節點」目錄以及「 / usr / local / lib」中的「節點」和「 node_modules」。 I've tried uninstalling npm and reinstalling it following these instructions. 我已嘗試按照如下說明卸載npm並從新安裝。 spa

All of this because I was trying to update an older version of node to install the "zipstream" library. 全部這些都是由於我試圖更新節點的舊版本以安裝「 zipstream」庫。 Now there's folders in my users directory, and the node version STILL isn't up to date, even though NVM says it's using 0.6.19. 如今,個人用戶目錄中有文件夾,而且節點版本STILL不是最新的,即便NVM表示它正在使用0.6.19。 .net

Ideally, I'd like to uninstall nodejs, npm, and nvm, and just reinstall the entire thing from scratch on my system. 理想狀況下,我想卸載nodejs,npm和nvm,而後從頭開始從新安裝整個系統。 rest


解決方案:

參考一: https://stackoom.com/question/ktta/如何徹底卸載Node-js-而後從頭開始從新安裝-Mac-OS-X
參考二: https://oldbug.net/q/ktta/How-do-I-completely-uninstall-Node-js-and-reinstall-from-beginning-Mac-OS-X
相關文章
相關標籤/搜索