亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

win8安裝grunt,執行npm install時報錯

win8安裝grunt,執行npm install時報錯

MMTTMM 2019-04-13 08:46:31
想在本機上裝Bootstrap的源碼,需要安裝Grunt。按照官網的表述,在執行npminstall時,出現了很多報錯。希望有人指點一下是什么原因?還要裝其他的環境嗎?以下為命令行:F:\Officesoftware2\bootstrap-3.2.0>[email protected]:Packagewasrenamedto'grunt-jscs'[email protected].\[email protected]:\Officesoftware2\bootstrap-3.2.0\node_modules\grunt-contrib-qunit\node_modules\grunt-lib-phantomjs\node_modules\phantomjsnodeinstall.jsDownloadinghttps://bitbucket.org/ariya/phantomjs/downloads/phantomjs-1.9.7-windows.zipSavingtoC:\Users\博聞\AppData\Local\Temp\phantomjs\phantomjs-1.9.7-windows.zipReceiving...Errormakingrequest.Error:connectETIMEDOUTaterrnoException(net.js:904:11)atObject.afterConnect[asoncomplete](net.js:895:19)Pleasereportthisfulllogathttps://github.com/Medium/[email protected]:nodeinstall.jsnpmERR!Exitstatus1npmERR!npmERR!Failedatthephantomjs@1.9.10installscript.npmERR!Thisismostlikelyaproblemwiththephantomjspackage,npmERR!notwithnpmitself.npmERR!Telltheauthorthatthisfailsonyoursystem:npmERR!nodeinstall.jsnpmERR!Youcangettheirinfovia:npmERR!npmownerlsphantomjsnpmERR!Thereislikelyadditionalloggingoutputabove.npmERR!SystemWindows_NT6.2.9200npmERR!command"F:\Officesoftware2\Node.js\\node.exe""F:\Officesoftware2\Node.js\node_modules\npm\bin\npm-cli.js""install"npmERR!cwdF:\Officesoftware2\bootstrap-3.2.0npmERR!node-vv0.10.32npmERR!npm-v1.4.28npmERR!codeELIFECYCLEnpmERR!notokcode0
查看完整描述

2 回答

?
拉丁的傳說

TA貢獻1789條經驗 獲得超8個贊

首先安裝Bootstrap的源碼跟grunt沒有關系,Bootstrap的源碼安裝了node環境就可以了。
grunt是一個構建工具,Bootstrap項目也是采用這個grunt構建工具。當然你不用構建工具,對于你使用Bootstrap沒有多大關系。
npminstall命令執行時,他會在package.json安裝依賴包。從錯誤信息來看,很有可能是phantomjs相關的依賴出錯(我也遇到過,這個工具好像是做js自動話測試的吧)。錯誤的原因好像是網絡問題(你懂得)。
解決方法。使用別的同性質來代替或者忽略這個依賴安裝。希望能幫到你
                            
查看完整回答
反對 回復 2019-04-13
  • 2 回答
  • 0 關注
  • 418 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號