我已經安裝了節點js 0.12以獲得和聲功能。 但是現在在我的項目開發中,我使用nvm,以便可以擁有多個節點版本。我已將默認版本設爲0.10.34。所以只要我輸入這個命令:如何從Ubuntu中刪除節點版本0.12?
node --version
我得到版本爲0.10.34。這可以。
但是,在安裝像node-inspector這樣的一些軟件包時,下面的警告即將到來,我的調試器在安裝時無法正常工作。
engine [email protected]: wanted: {"node":"0.8.x || 0.10.x"} (current: {"node":"0.12.3","npm":"2.9.1"})
調試器會錯誤,如:
Error: Cannot find module '/usr/lib/node_modules/node-inspector/node_modules/v8-debug/build/debug/v0.4.4/node-v11-linux-x64/debug.node'
Runtime.getProperties failed.
ReferenceError: frame_index is not defined
據NPM安裝程序,版本仍然是0.12。 我搜索了很多以刪除此版本,但無法找到任何工作解決方案。
您是如何安裝它的節點版本其他的方法?用'apt-get'或其他東西? – Scimonster
不,它是使用捲曲請求完成的 – Kop4lyf
它來自http://askubuntu.com/questions/586671/installing-latest-node-js-through-ppa-not-a-duplicate的接受答案 – Kop4lyf