艾玛,广州跨境电商体验店店是个什么鬼

win7下为了编译Bootstrap,安装grunt时,执行到npm install时报错。
win7下为了编译Bootstrap,安装grunt时,执行到npm install时报错。
想在本机上装Bootstrap的源码,需要安装Grunt。为此,依次安装了nodejs(v4.2.2 LTS), git。然后,执行npm install -g grunt-cli,貌似也成功了。(执行:grunt -version,能看到 grunt-cli v0.1.13)
然后在下载了Bootstrap源码,解压,进入其目录执行:npm install时,报错:
npm WARN addRemoteGit Error: not found: git
npm WARN addRemoteGit
at F (D:\front\soft\nodejs\node_modules\npm\node_modules\which\which.js:73:28)
npm WARN addRemoteGit
at E (D:\front\soft\nodejs\node_modules\npm\node_modules\which\which.js:76:29)
npm WARN addRemoteGit
at D:\front\soft\nodejs\node_modules\npm\node_modules\which\which.js:84:16
npm WARN addRemoteGit
at FSReqWrap.oncomplete (fs.js:82:15)
npm WARN addRemoteGit
twbs/grunt-sed#v0.2.0 resetting remote C:\Users\Administrator\AppData\Roaming\npm-cache\_git-remotes\git-github-com-twb
npm ERR! git clone --template=C:\Users\Administrator\AppData\Roaming\npm-cache\_git-remotes\_templates --mirror git:///twbs/grunt-se
npm ERR! git clone --template=C:\Users\Administrator\AppData\Roaming\npm-cache\_git-remotes\_templates --mirror git:///twbs/grunt-se
npm WARN addRemoteGit Error: not found: git
npm WARN addRemoteGit
at F (D:\front\soft\nodejs\node_modules\npm\node_modules\which\which.js:73:28)
npm WARN addRemoteGit
at E (D:\front\soft\nodejs\node_modules\npm\node_modules\which\which.js:76:29)
npm WARN addRemoteGit
at D:\front\soft\nodejs\node_modules\npm\node_modules\which\which.js:84:16
npm WARN addRemoteGit
at FSReqWrap.oncomplete (fs.js:82:15)
npm WARN addRemoteGit
twbs/grunt-sed#v0.2.0 resetting remote C:\Users\Administrator\AppData\Roaming\npm-cache\_git-remotes\https-github-com-t
npm ERR! git clone --template=C:\Users\Administrator\AppData\Roaming\npm-cache\_git-remotes\_templates --mirror /twbs/grunt-
npm ERR! git clone --template=C:\Users\Administrator\AppData\Roaming\npm-cache\_git-remotes\_templates --mirror /twbs/grunt-
npm WARN addRemoteGit Error: not found: git
npm WARN addRemoteGit
at F (D:\front\soft\nodejs\node_modules\npm\node_modules\which\which.js:73:28)
npm WARN addRemoteGit
at E (D:\front\soft\nodejs\node_modules\npm\node_modules\which\which.js:76:29)
npm WARN addRemoteGit
at D:\front\soft\nodejs\node_modules\npm\node_modules\which\which.js:84:16
npm WARN addRemoteGit
at FSReqWrap.oncomplete (fs.js:82:15)
npm WARN addRemoteGit
twbs/grunt-sed#v0.2.0 resetting remote C:\Users\Administrator\AppData\Roaming\npm-cache\_git-remotes\git-github-com-twb
npm ERR! git clone --template=C:\Users\Administrator\AppData\Roaming\npm-cache\_git-remotes\_templates --mirror :twbs/grunt-sed.
npm ERR! git clone --template=C:\Users\Administrator\AppData\Roaming\npm-cache\_git-remotes\_templates --mirror :twbs/grunt-sed.
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "D:\\front\\soft\\nodejs\\node.exe" "D:\\front\\soft\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install"
npm ERR! node v4.2.2
npm ERR! npm
npm ERR! code ENOGIT
npm ERR! not found: git
npm ERR! Failed using git.
npm ERR! This is most likely not a problem with npm itself.
npm ERR! Please check if you have git installed and in your PATH.
npm ERR! Please include the following file with any support request:
D:\front\htmlcss\bootstrap\soft\bootstrap-3.3.5\npm-debug.log
看提示,好像是git的问题。可以我已经安装了git,而且也加入到了PATH里面。命令行敲:git --version可以显示:git version 1.9.5.msysgit.0
1,grunt-cli安上了 grunt还没安上,执行npm install grunt@0.4.3
2,不用手动下载bootstrap,项目目录下执行npm install bootstrap就好
Copyright & 2016 phpStudyGrunt 常见问题_百度文库
两大类热门资源免费畅读
续费一年阅读会员,立省24元!
Grunt 常见问题
|0|0|暂无简介
W3Cschool()最大的技术知...|
总评分0.0|
阅读已结束,如果下载本文需要使用0下载券
想免费下载更多文档?
定制HR最喜欢的简历
下载文档到电脑,查找使用更方便
还剩1页未读,继续阅读
定制HR最喜欢的简历
你可能喜欢grunt安装失败,
求解... - CNode技术社区
这家伙很懒,什么个性签名都没有留下。
:~ root# npm install -g grunt-cli
Error: Cannot find module './lib/querystring’
at Function.Module._resolveFilename (module.js:336:15)
at Function.Module._load (module.js:278:25)
at Module.require (module.js:365:17)
at require (module.js:384:17)
at Object.&anonymous& (/usr/local/lib/node_modules/npm/node_modules/request/request.js:23:19)
at Module._compile (module.js:460:26)
at Object.Module._extensions…js (module.js:478:10)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
at Module.require (module.js:365:17)
at require (module.js:384:17)
npm ERR! Darwin 14.5.0
npm ERR! argv “node” “/usr/local/bin/npm” “install” “-g” &grunt-cli&
npm ERR! node v0.12.2
npm ERR! npm
npm ERR! code MODULE_NOT_FOUND
npm ERR! Cannot find module './lib/querystring’
npm ERR! If you need help, you may report this error at:
CNode 社区为国内最专业的 Node.js 开源技术社区,致力于 Node.js 的技术研究。
服务器赞助商为
,存储赞助商为
,由提供应用性能服务。
新手搭建 Node.js 服务器,推荐使用无需备案的

我要回帖

更多关于 南沙跨境电商体验中心 的文章

 

随机推荐