第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號安全,請及時綁定郵箱和手機立即綁定

代碼好多坑額,node-gyp要vs::::

MSBUILD : error MSB3411: Could not load the Visual C++ component "VCBuild.exe". If the component is not install

ndows SDK for Windows Server 2008 and .NET Framework 3.5, or 2) install Microsoft Visual Studio 2008. ?[E:\movi

les\mongodb\node_modules\bson\build\binding.sln]


正在回答

5 回答

用npm install -g appium進行安裝,出現(xiàn)如下錯誤,已經(jīng)安裝了.net framework4.0還是不行,請高手指點,萬分感激。

http://img1.sycdn.imooc.com//595ce4fb00018ba206720628.jpg

0 回復 有任何疑惑可以回復我~

記錄一下,之前的NPM版本是1.3.14,安裝最新版的mongodb是老是報錯

MSBUILD?:?error?MSB6006:?“VCBuild.exe”已退出,代碼為?-1。?[F:\SingleWebPage\MongoDB\webapp\node_modules\bson\node_modules\bson-ext\build\binding.sln]?????????????????????????????????????????????????????????????????????????
gyp?ERR!?build?error
gyp?ERR!?stack?Error:?`C:\windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe`?failed?with?exit?code:?1
gyp?ERR!?stack?????at?ChildProcess.onExit?(D:\nodejs\node_modules\npm\node_modules\node-gyp\lib\build.js:267:23)
gyp?ERR!?stack?????at?ChildProcess.EventEmitter.emit?(events.js:98:17)
gyp?ERR!?stack?????at?Process.ChildProcess._handle.onexit?(child_process.js:789:12)
gyp?ERR!?System?Windows_NT?6.1.7601
gyp?ERR!?command?"node"?"D:\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js"?"build"?"--fallback-to-build"?"--module=F:\\SingleWebPage\\MongoDB\\webapp\\node_modules\\bson\\node_modules\\bson-ext
\\build\\Release\\bson.node"?"--module_name=bson"?"--module_path=F:\\SingleWebPage\\MongoDB\\webapp\\node_modules\\bson\\node_modules\\bson-ext\\build\\Release"
gyp?ERR!?cwd?F:\SingleWebPage\MongoDB\webapp\node_modules\bson\node_modules\bson-ext
gyp?ERR!?node?-v?v0.10.22
gyp?ERR!?node-gyp?-v?v0.11.0
gyp?ERR!?not?ok
node-pre-gyp?ERR!?build?error
node-pre-gyp?ERR!?stack?Error:?Failed?to?execute?'node-gyp.cmd?build?--fallback-to-build?--module=F:\SingleWebPage\MongoDB\webapp\node_modules\bson\node_modules\bson-ext\build\Release\bson.node?--module_name=bson?--m
odule_path=F:\SingleWebPage\MongoDB\webapp\node_modules\bson\node_modules\bson-ext\build\Release'?(1)
node-pre-gyp?ERR!?stack?????at?ChildProcess.<anonymous>?(F:\SingleWebPage\MongoDB\webapp\node_modules\bson\node_modules\bson-ext\node_modules\node-pre-gyp\lib\util\compile.js:83:29)
node-pre-gyp?ERR!?stack?????at?ChildProcess.EventEmitter.emit?(events.js:98:17)
node-pre-gyp?ERR!?stack?????at?maybeClose?(child_process.js:735:16)
node-pre-gyp?ERR!?stack?????at?Process.ChildProcess._handle.onexit?(child_process.js:802:5)
node-pre-gyp?ERR!?System?Windows_NT?6.1.7601
node-pre-gyp?ERR!?command?"node"?"F:\\SingleWebPage\\MongoDB\\webapp\\node_modules\\bson\\node_modules\\bson-ext\\node_modules\\node-pre-gyp\\bin\\node-pre-gyp.js"?"install"?"--fallback-to-build"
node-pre-gyp?ERR!?cwd?F:\SingleWebPage\MongoDB\webapp\node_modules\bson\node_modules\bson-ext
node-pre-gyp?ERR!?node?-v?v0.10.22
node-pre-gyp?ERR!?node-pre-gyp?-v?v0.6.4
node-pre-gyp?ERR!?not?ok
Failed?to?execute?'node-gyp.cmd?build?--fallback-to-build?--module=F:\SingleWebPage\MongoDB\webapp\node_modules\bson\node_modules\bson-ext\build\Release\bson.node?--module_name=bson?--module_path=F:\SingleWebPage\Mon
goDB\webapp\node_modules\bson\node_modules\bson-ext\build\Release'?(1)

我的內(nèi)心幾乎是奔潰的。用二樓的方法還是不行,

最后是重新安裝了nodejs,這是的版本是2.10.1,再安裝mongodb時沒有錯誤了

0 回復 有任何疑惑可以回復我~

2樓答案親測可用


0 回復 有任何疑惑可以回復我~

原因

npm在1.3.15版本以前node-gyp 在編譯時會調(diào)用VCBuild.exe,在vs2012下是找不到的VCBuild.exe, vs2012及以后版本是msbuild.exe作為編譯器。

解決:

將npm 的 msvs的編譯器設置為vs2012

cmd執(zhí)行:

npm config set msvs_version 2012 --global?


1 回復 有任何疑惑可以回復我~

還好我這里沒問題,我有VS2013,也安裝了ruby和python,不然編譯不過。

0 回復 有任何疑惑可以回復我~

舉報

0/150
提交
取消
node建站攻略(二期)——網(wǎng)站升級
  • 參與學習       51926    人
  • 解答問題       423    個

幫助你深入前后端開發(fā)留下的迷惑,為進一步自學打下基礎

進入課程
微信客服

購課補貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網(wǎng)微信公眾號