嗨我正在嘗試安裝並運行angular-phonecat項目。NPM開始拋出錯誤
- 從GitHub安裝的git(視窗)
- 開業GIT中shell.cloned的probject。
- 我有節點已經安裝,所以我打開節點控制檯和鍵入節點 - 版本。我得到v0.10.9
- 回到git外殼。在角phonecat目錄並NPM安裝(安裝所有依賴關係的角度JS表明這裏:https://docs.angularjs.org/tutorial
我得到了以下錯誤,那麼:
npm ERR! Error: No compatible version found: [email protected]'^0.1.4'
npm ERR! Valid install targets:
npm ERR! ["0.0.1","0.0.2","0.1.0","0.1.1","0.1.2","0.1.3","0.1.4","0.1.5"]
npm ERR! at installTargetsError (C:\Program Files (x86)\nodejs\node_modules\
npm\lib\cache.js:709:10)
npm ERR! at C:\Program Files (x86)\nodejs\node_modules\npm\lib\cache.js:631:
10
npm ERR! at saved (C:\Program Files (x86)\nodejs\node_modules\npm\node_modul
es\npm-registry-client\lib\get.js:138:7)
npm ERR! at Object.oncomplete (fs.js:107:15)
npm ERR! If you need help, you may report this log at:
npm ERR! <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR! <[email protected]>
npm ERR! System Windows_NT 6.1.7601
npm ERR! command "C:\\Program Files (x86)\\nodejs\\\\node.exe" "C:\\Program File
s (x86)\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install"
npm ERR! cwd C:\Users\abc\angular-phonecat
npm ERR! node -v v0.10.9
npm ERR! npm -v 1.2.24
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! C:\Users\abc\angular-phonecat\npm-debug.log
npm ERR! not ok code 0
我不知道什麼是錯的
---- 2014年11月3日更新----我將Node更新到了版本v0.10.33,並且在嘗試將npm安裝在angular-phonecat目錄時開始獲得以下錯誤。
npm WARN package.json [email protected]無自述數據
[email protected]安裝後C:\ ABC \角phonecat 亭子安裝
'亭子' 沒有被識別爲內部或外部命令,可操作的程序或批處理文件。
npm ERR! [email protected] postinstall: `bower install`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] postinstall script.
npm ERR! This is most likely a problem with the angular-phonecat package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! bower install
npm ERR! You can get their info via:
npm ERR! npm owner ls angular-phonecat
npm ERR! There is likely additional logging output above.
npm ERR! System Windows_NT 6.1.7601
npm ERR! command "C:\\Program Files (x86)\\nodejs\\\\node.exe" "C:\\Program File
s (x86)\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install"
npm ERR! cwd C:\abc\angular-phonecat
npm ERR! node -v v0.10.33
npm ERR! npm -v 1.4.28
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! C:\abc\angular-phonecat\npm-debug.log
npm ERR! not ok code 0
打印到'npm-debug.log'文件是否有用? – BlackVegetable 2014-10-30 00:24:09
npm-debug.log與我上面粘貼的錯誤完全相同。 – greengrassbluesky 2014-10-30 00:30:39