嗨我正在尝试安装并运行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