簡體   English   中英

錯誤:npm不適用於NetBeans 8.1中的節點v0.10.32

[英]Error: npm doesn't work with node v0.10.32 in netbeans 8.1

在此處輸入圖片說明

嗨,我正在嘗試在netbeans中安裝npm。 單擊“解決項目問題”時,我得到以下輸出

"C:\npm-1.1.0-1\npm.cmd" "install"
Error: npm doesn't work with node v0.10.32
Required: node@0.6 || 0.7 || 0.8
at C:\npm-1.1.0-1\node_modules\npm\bin\npm-cli.js:60:23
at Object.<anonymous> (C:\npm-1.1.0-1\node_modules\npm\bin\npm-cli.js:80:3)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Function.Module.runMain (module.js:497:10)
at startup (node.js:119:16)
at node.js:906:3

Done.

我怎樣才能解決這個問題?

我遇到了http://abdelraoof.com/blog/2014/11/11/install-nodejs-without-admin-rights/ 在君士坦丁堡底部的注釋中添加:

1 - extracted npm-3.5.2.zip
2 - created a node_modules directory in the same directory where node.exe is
3 - renamed the extracted directory from npm-3.5.2 to npm
4 - moved npm directory to node_modules
5 - copied npm.cmd (because I am using Windows) to the same directory where node.exe is

At the end I only needed to add one entry in the classpath.

這對我贏得了勝利7起到了作用。我希望這會對某人有所幫助。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM