想问一下当我试图跑的原因是什么时 npm install在命令提示符下,它一直显示我这样的错误?
Microsoft Windows [Version 6.3.9600]
(c) 2013 Microsoft Corporation. All rights reserved.
C:\Users\Kenny\Dropbox\Projects\wordpress\wp-content\themes\roots>npm install
> roots@7.0.3 postinstall C:\Users\Kenny\Dropbox\Projects\wordpress\wp-content\t
hemes\roots
> node node_modules/bower/bin/bower install && grunt dev
bower not-cached git://github.com/Modernizr/Modernizr.git#2.8.2
bower resolve git://github.com/Modernizr/Modernizr.git#2.8.2
bower not-cached git://github.com/scottjehl/Respond.git#1.4.2
bower resolve git://github.com/scottjehl/Respond.git#1.4.2
bower not-cached git://github.com/twbs/bootstrap.git#3.3.1
bower resolve git://github.com/twbs/bootstrap.git#3.3.1
bower not-cached git://github.com/jquery/jquery.git#1.11.1
bower resolve git://github.com/jquery/jquery.git#1.11.1
bower ECMDERR Failed to execute "git ls-remote --tags --heads git://github
.com/scottjehl/Respond.git", exit code of #128
Additional error details:
fatal: read error: Invalid argument
npm ERR! roots@7.0.3 postinstall: `node node_modules/bower/bin/bower install &&
grunt dev`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the roots@7.0.3 postinstall script.
npm ERR! This is most likely a problem with the roots package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node node_modules/bower/bin/bower install && grunt dev
npm ERR! You can get their info via:
npm ERR! npm owner ls roots
npm ERR! There is likely additional logging output above.
npm ERR! System Windows_NT 6.2.9200
npm ERR! command "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nod
ejs\\node_modules\\npm\\bin\\npm-cli.js" "install"
npm ERR! cwd C:\Users\Kenny\Dropbox\Projects\wordpress\wp-content\themes\roots
npm ERR! node -v v0.10.35
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:\Users\Kenny\Dropbox\Projects\wordpress\wp-content\themes\roots\n
pm-debug.log
npm ERR! not ok code 0
我已检查所有文件夹,并确保为所有文件夹提供必要的权限,并且我还在管理员模式下运行命令提示符。
如果有人能为我提供一些帮助。谢谢。
Additional system information:
Windows 8.1 Professional x64
Vagrant virtual enviornment v1.7.2
Roots.io v7.0.3-3-g2723692
答案 0 :(得分:1)
您是否可以访问以下的uri?
GIT中://github.com/scottjehl/Respond.git
您的问题中的错误响应指向 bower ECMDERR无法执行" git ls-remote --tags --heads git:// github .com / scottjehl / Respond.git",退出代码#128