npm install socket.io

wklc2014 发布于 2015/06/01 10:18
阅读 4K+
收藏 1

正确安装nodejs后,再安装socket.io;

用的npm install socket.io命令

以下是报错

C:\Program Files\nodejs>npm install socket.io
-
 


> ws@0.5.0 install C:\Program Files\nodejs\node_modules\socket.io\node_modules\engine.io\node_modules\ws
> (node-gyp rebuild 2> builderror.log) || (exit 0)




C:\Program Files\nodejs\node_modules\socket.io\node_modules\engine.io\node_modules\ws>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild )  else (rebuild) 
\gyp ERR! configure error 
gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable.
gyp ERR! stack     at failNoPython (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:103:14)
gyp ERR! stack     at C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:64:11
gyp ERR! stack     at FSReqWrap.oncomplete (evalmachine.<anonymous>:95:15)
gyp ERR! System Windows_NT 6.1.7601
gyp ERR! command "node" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Program Files\nodejs\node_modules\socket.io\node_modules\engine.io\node_modules\ws
gyp ERR! node -v v0.12.4
gyp ERR! node-gyp -v v1.0.3
gyp ERR! not ok 
\
 


> ws@0.4.31 install C:\Program Files\nodejs\node_modules\socket.io\node_modules\socket.io-client\node_modules\engine.io-client\node_modules\ws
> (node-gyp rebuild 2> builderror.log) || (exit 0)




C:\Program Files\nodejs\node_modules\socket.io\node_modules\socket.io-client\node_modules\engine.io-client\node_modules\ws>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild )  else (rebuild) 
-gyp ERR! configure error 
gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable.
gyp ERR! stack     at failNoPython (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:103:14)
gyp ERR! stack     at C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:64:11
gyp ERR! stack     at FSReqWrap.oncomplete (evalmachine.<anonymous>:95:15)
gyp ERR! System Windows_NT 6.1.7601
gyp ERR! command "node" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Program Files\nodejs\node_modules\socket.io\node_modules\socket.io-client\node_modules\engine.io-client\node_modules\ws
gyp ERR! node -v v0.12.4
gyp ERR! node-gyp -v v1.0.3
gyp ERR! not ok 
-socket.io@1.3.5 node_modules\socket.io
├── has-binary-data@0.1.3 (isarray@0.0.1)
├── debug@2.1.0 (ms@0.6.2)
├── socket.io-parser@2.2.4 (isarray@0.0.1, debug@0.7.4, component-emitter@1.1.2, benchmark@1.0.0, json3@3.2.6)
├── socket.io-adapter@0.3.1 (object-keys@1.0.1, debug@1.0.2, socket.io-parser@2.2.2)
├── engine.io@1.5.1 (base64id@0.1.0, debug@1.0.3, engine.io-parser@1.2.1, ws@0.5.0)
└── socket.io-client@1.3.5 (to-array@0.1.3, indexof@0.0.1, component-bind@1.0.0, debug@0.7.4, backo2@1.0.2, object-component@0.0.3, component-emitter@1.1.2, has-binary@0.1.6, parseuri@0.0.2, engine.io-client@1.5.1)


目录下也有了socket.io目录,不知道socket.io是否正确安装了,报错的信息又是什么呢?

加载中
0
lieefu
lieefu

这是因为 socket.io 需要的c++库需要在本机编译,nodejs编译c++代码的命令是 node-gyp,你的机器尚未安装这个,因此报错,请执行下面的语句安装node-gyp,然后再执行一遍 npm install socket.io

sudo npm install -g node-gyp



0
wklc2014
wklc2014

引用来自“lieefu”的评论

这是因为 socket.io 需要的c++库需要在本机编译,nodejs编译c++代码的命令是 node-gyp,你的机器尚未安装这个,因此报错,请执行下面的语句安装node-gyp,然后再执行一遍 npm install socket.io

sudo npm install -g node-gyp



先要感谢大神的回答,

我按照你的提示,先安装了

npm install -g node-gyp

C:\Program Files\nodejs>npm install -g node-gyp
---\C:\Users\Administrator\AppData\Roaming\npm\node-gyp -> C:\Users\Administrator\AppData\Roaming\npm\node_modules\node-gyp\bin\node-gyp.js
node-gyp@2.0.1 C:\Users\Administrator\AppData\Roaming\npm\node_modules\node-gyp
├── osenv@0.1.1
├── rimraf@2.3.4
├── graceful-fs@3.0.8
├── semver@4.3.6
├── fstream@1.0.6 (inherits@2.0.1)
├── nopt@3.0.2 (abbrev@1.0.7)
├── minimatch@1.0.0 (sigmund@1.0.1, lru-cache@2.6.4)
├── tar@1.0.3 (inherits@2.0.1, block-stream@0.0.8)
├── mkdirp@0.5.1 (minimist@0.0.8)
├── which@1.1.1 (is-absolute@0.1.7)
├── glob@4.5.3 (inherits@2.0.1, inflight@1.0.4, once@1.3.2, minimatch@2.0.8)
├── path-array@1.0.0 (array-index@0.1.1)
├── npmlog@1.2.1 (ansi@0.3.0, are-we-there-yet@1.0.4, gauge@1.2.0)
└── request@2.57.0 (caseless@0.10.0, aws-sign2@0.5.0, stringstream@0.0.4, forever-agent@0.6.1, tunnel-agent@0.4.0, oauth-sign@0.8.0, isstream@0.1.2, json-stringify-safe@5.0.1, node-uuid@1.4.3, qs@3.1.0, tough-cookie@1.2.0, mime-types@2.0.13, http-signature@0.11.0, combined-stream@1.0.3, form-data@0.2.0, bl@0.9.4, hawk@2.3.1, har-validator@1.7.1)

然后在npm的node_modules文件夹里也找到了这个模块,我估计我已经成功安装了node_gyp.

但是我再安装socket.io的时候还是报了错,

C:\Program Files\nodejs>npm install socket.io
-
 


> ws@0.5.0 install C:\Program Files\nodejs\node_modules\socket.io\node_modules\engine.io\node_modules\ws
> (node-gyp rebuild 2> builderror.log) || (exit 0)




C:\Program Files\nodejs\node_modules\socket.io\node_modules\engine.io\node_modules\ws>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild )  else (rebuild) 
/gyp ERR! configure error 
gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable.
gyp ERR! stack     at failNoPython (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:103:14)
gyp ERR! stack     at C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:64:11
gyp ERR! stack     at FSReqWrap.oncomplete (evalmachine.<anonymous>:95:15)
gyp ERR! System Windows_NT 6.1.7601
gyp ERR! command "node" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Program Files\nodejs\node_modules\socket.io\node_modules\engine.io\node_modules\ws
gyp ERR! node -v v0.12.4
gyp ERR! node-gyp -v v1.0.3
gyp ERR! not ok 
|
 


> ws@0.4.31 install C:\Program Files\nodejs\node_modules\socket.io\node_modules\socket.io-client\node_modules\engine.io-client\node_modules\ws
> (node-gyp rebuild 2> builderror.log) || (exit 0)




C:\Program Files\nodejs\node_modules\socket.io\node_modules\socket.io-client\node_modules\engine.io-client\node_modules\ws>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild )  else (rebuild) 
\gyp ERR! configure error 
gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable.
gyp ERR! stack     at failNoPython (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:103:14)
gyp ERR! stack     at C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:64:11
gyp ERR! stack     at FSReqWrap.oncomplete (evalmachine.<anonymous>:95:15)
gyp ERR! System Windows_NT 6.1.7601
gyp ERR! command "node" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Program Files\nodejs\node_modules\socket.io\node_modules\socket.io-client\node_modules\engine.io-client\node_modules\ws
gyp ERR! node -v v0.12.4
gyp ERR! node-gyp -v v1.0.3
gyp ERR! not ok 
|socket.io@1.3.5 node_modules\socket.io
├── has-binary-data@0.1.3 (isarray@0.0.1)
├── debug@2.1.0 (ms@0.6.2)
├── socket.io-parser@2.2.4 (isarray@0.0.1, debug@0.7.4, component-emitter@1.1.2, benchmark@1.0.0, json3@3.2.6)
├── socket.io-adapter@0.3.1 (object-keys@1.0.1, debug@1.0.2, socket.io-parser@2.2.2)
├── engine.io@1.5.1 (base64id@0.1.0, debug@1.0.3, engine.io-parser@1.2.1, ws@0.5.0)
└── socket.io-client@1.3.5 (to-array@0.1.3, indexof@0.0.1, component-bind@1.0.0, debug@0.7.4, object-component@0.0.3, component-emitter@1.1.2, backo2@1.0.2, has-binary@0.1.6, parseuri@0.0.2, engine.io-client@1.5.1)


请问是我还有哪里出错了吗

0
lieefu
lieefu

引用来自“lieefu”的评论

这是因为 socket.io 需要的c++库需要在本机编译,nodejs编译c++代码的命令是 node-gyp,你的机器尚未安装这个,因此报错,请执行下面的语句安装node-gyp,然后再执行一遍 npm install socket.io

sudo npm install -g node-gyp



先要感谢大神的回答,

我按照你的提示,先安装了

npm install -g node-gyp

C:\Program Files\nodejs>npm install -g node-gyp
---\C:\Users\Administrator\AppData\Roaming\npm\node-gyp -> C:\Users\Administrator\AppData\Roaming\npm\node_modules\node-gyp\bin\node-gyp.js
node-gyp@2.0.1 C:\Users\Administrator\AppData\Roaming\npm\node_modules\node-gyp
├── osenv@0.1.1
├── rimraf@2.3.4
├── graceful-fs@3.0.8
├── semver@4.3.6
├── fstream@1.0.6 (inherits@2.0.1)
├── nopt@3.0.2 (abbrev@1.0.7)
├── minimatch@1.0.0 (sigmund@1.0.1, lru-cache@2.6.4)
├── tar@1.0.3 (inherits@2.0.1, block-stream@0.0.8)
├── mkdirp@0.5.1 (minimist@0.0.8)
├── which@1.1.1 (is-absolute@0.1.7)
├── glob@4.5.3 (inherits@2.0.1, inflight@1.0.4, once@1.3.2, minimatch@2.0.8)
├── path-array@1.0.0 (array-index@0.1.1)
├── npmlog@1.2.1 (ansi@0.3.0, are-we-there-yet@1.0.4, gauge@1.2.0)
└── request@2.57.0 (caseless@0.10.0, aws-sign2@0.5.0, stringstream@0.0.4, forever-agent@0.6.1, tunnel-agent@0.4.0, oauth-sign@0.8.0, isstream@0.1.2, json-stringify-safe@5.0.1, node-uuid@1.4.3, qs@3.1.0, tough-cookie@1.2.0, mime-types@2.0.13, http-signature@0.11.0, combined-stream@1.0.3, form-data@0.2.0, bl@0.9.4, hawk@2.3.1, har-validator@1.7.1)

然后在npm的node_modules文件夹里也找到了这个模块,我估计我已经成功安装了node_gyp.

但是我再安装socket.io的时候还是报了错,

C:\Program Files\nodejs>npm install socket.io
-
 


> ws@0.5.0 install C:\Program Files\nodejs\node_modules\socket.io\node_modules\engine.io\node_modules\ws
> (node-gyp rebuild 2> builderror.log) || (exit 0)




C:\Program Files\nodejs\node_modules\socket.io\node_modules\engine.io\node_modules\ws>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild )  else (rebuild) 
/gyp ERR! configure error 
gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable.
gyp ERR! stack     at failNoPython (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:103:14)
gyp ERR! stack     at C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:64:11
gyp ERR! stack     at FSReqWrap.oncomplete (evalmachine.<anonymous>:95:15)
gyp ERR! System Windows_NT 6.1.7601
gyp ERR! command "node" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Program Files\nodejs\node_modules\socket.io\node_modules\engine.io\node_modules\ws
gyp ERR! node -v v0.12.4
gyp ERR! node-gyp -v v1.0.3
gyp ERR! not ok 
|
 


> ws@0.4.31 install C:\Program Files\nodejs\node_modules\socket.io\node_modules\socket.io-client\node_modules\engine.io-client\node_modules\ws
> (node-gyp rebuild 2> builderror.log) || (exit 0)




C:\Program Files\nodejs\node_modules\socket.io\node_modules\socket.io-client\node_modules\engine.io-client\node_modules\ws>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild )  else (rebuild) 
\gyp ERR! configure error 
gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable.
gyp ERR! stack     at failNoPython (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:103:14)
gyp ERR! stack     at C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:64:11
gyp ERR! stack     at FSReqWrap.oncomplete (evalmachine.<anonymous>:95:15)
gyp ERR! System Windows_NT 6.1.7601
gyp ERR! command "node" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Program Files\nodejs\node_modules\socket.io\node_modules\socket.io-client\node_modules\engine.io-client\node_modules\ws
gyp ERR! node -v v0.12.4
gyp ERR! node-gyp -v v1.0.3
gyp ERR! not ok 
|socket.io@1.3.5 node_modules\socket.io
├── has-binary-data@0.1.3 (isarray@0.0.1)
├── debug@2.1.0 (ms@0.6.2)
├── socket.io-parser@2.2.4 (isarray@0.0.1, debug@0.7.4, component-emitter@1.1.2, benchmark@1.0.0, json3@3.2.6)
├── socket.io-adapter@0.3.1 (object-keys@1.0.1, debug@1.0.2, socket.io-parser@2.2.2)
├── engine.io@1.5.1 (base64id@0.1.0, debug@1.0.3, engine.io-parser@1.2.1, ws@0.5.0)
└── socket.io-client@1.3.5 (to-array@0.1.3, indexof@0.0.1, component-bind@1.0.0, debug@0.7.4, object-component@0.0.3, component-emitter@1.1.2, backo2@1.0.2, has-binary@0.1.6, parseuri@0.0.2, engine.io-client@1.5.1)


引用来自“wklc2014”的评论

请问是我还有哪里出错了吗

看见这句错误提示了么?
gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable.

你还需要安装python,或者设置正确的PYTHON环境变量。
题外话,在windows下用nodejs,真心不方便,换Linux吧

0
wklc2014
wklc2014

引用来自“lieefu”的评论

这是因为 socket.io 需要的c++库需要在本机编译,nodejs编译c++代码的命令是 node-gyp,你的机器尚未安装这个,因此报错,请执行下面的语句安装node-gyp,然后再执行一遍 npm install socket.io

sudo npm install -g node-gyp



先要感谢大神的回答,

我按照你的提示,先安装了

npm install -g node-gyp

C:\Program Files\nodejs>npm install -g node-gyp
---\C:\Users\Administrator\AppData\Roaming\npm\node-gyp -> C:\Users\Administrator\AppData\Roaming\npm\node_modules\node-gyp\bin\node-gyp.js
node-gyp@2.0.1 C:\Users\Administrator\AppData\Roaming\npm\node_modules\node-gyp
├── osenv@0.1.1
├── rimraf@2.3.4
├── graceful-fs@3.0.8
├── semver@4.3.6
├── fstream@1.0.6 (inherits@2.0.1)
├── nopt@3.0.2 (abbrev@1.0.7)
├── minimatch@1.0.0 (sigmund@1.0.1, lru-cache@2.6.4)
├── tar@1.0.3 (inherits@2.0.1, block-stream@0.0.8)
├── mkdirp@0.5.1 (minimist@0.0.8)
├── which@1.1.1 (is-absolute@0.1.7)
├── glob@4.5.3 (inherits@2.0.1, inflight@1.0.4, once@1.3.2, minimatch@2.0.8)
├── path-array@1.0.0 (array-index@0.1.1)
├── npmlog@1.2.1 (ansi@0.3.0, are-we-there-yet@1.0.4, gauge@1.2.0)
└── request@2.57.0 (caseless@0.10.0, aws-sign2@0.5.0, stringstream@0.0.4, forever-agent@0.6.1, tunnel-agent@0.4.0, oauth-sign@0.8.0, isstream@0.1.2, json-stringify-safe@5.0.1, node-uuid@1.4.3, qs@3.1.0, tough-cookie@1.2.0, mime-types@2.0.13, http-signature@0.11.0, combined-stream@1.0.3, form-data@0.2.0, bl@0.9.4, hawk@2.3.1, har-validator@1.7.1)

然后在npm的node_modules文件夹里也找到了这个模块,我估计我已经成功安装了node_gyp.

但是我再安装socket.io的时候还是报了错,

C:\Program Files\nodejs>npm install socket.io
-
 


> ws@0.5.0 install C:\Program Files\nodejs\node_modules\socket.io\node_modules\engine.io\node_modules\ws
> (node-gyp rebuild 2> builderror.log) || (exit 0)




C:\Program Files\nodejs\node_modules\socket.io\node_modules\engine.io\node_modules\ws>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild )  else (rebuild) 
/gyp ERR! configure error 
gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable.
gyp ERR! stack     at failNoPython (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:103:14)
gyp ERR! stack     at C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:64:11
gyp ERR! stack     at FSReqWrap.oncomplete (evalmachine.<anonymous>:95:15)
gyp ERR! System Windows_NT 6.1.7601
gyp ERR! command "node" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Program Files\nodejs\node_modules\socket.io\node_modules\engine.io\node_modules\ws
gyp ERR! node -v v0.12.4
gyp ERR! node-gyp -v v1.0.3
gyp ERR! not ok 
|
 


> ws@0.4.31 install C:\Program Files\nodejs\node_modules\socket.io\node_modules\socket.io-client\node_modules\engine.io-client\node_modules\ws
> (node-gyp rebuild 2> builderror.log) || (exit 0)




C:\Program Files\nodejs\node_modules\socket.io\node_modules\socket.io-client\node_modules\engine.io-client\node_modules\ws>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild )  else (rebuild) 
\gyp ERR! configure error 
gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable.
gyp ERR! stack     at failNoPython (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:103:14)
gyp ERR! stack     at C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:64:11
gyp ERR! stack     at FSReqWrap.oncomplete (evalmachine.<anonymous>:95:15)
gyp ERR! System Windows_NT 6.1.7601
gyp ERR! command "node" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Program Files\nodejs\node_modules\socket.io\node_modules\socket.io-client\node_modules\engine.io-client\node_modules\ws
gyp ERR! node -v v0.12.4
gyp ERR! node-gyp -v v1.0.3
gyp ERR! not ok 
|socket.io@1.3.5 node_modules\socket.io
├── has-binary-data@0.1.3 (isarray@0.0.1)
├── debug@2.1.0 (ms@0.6.2)
├── socket.io-parser@2.2.4 (isarray@0.0.1, debug@0.7.4, component-emitter@1.1.2, benchmark@1.0.0, json3@3.2.6)
├── socket.io-adapter@0.3.1 (object-keys@1.0.1, debug@1.0.2, socket.io-parser@2.2.2)
├── engine.io@1.5.1 (base64id@0.1.0, debug@1.0.3, engine.io-parser@1.2.1, ws@0.5.0)
└── socket.io-client@1.3.5 (to-array@0.1.3, indexof@0.0.1, component-bind@1.0.0, debug@0.7.4, object-component@0.0.3, component-emitter@1.1.2, backo2@1.0.2, has-binary@0.1.6, parseuri@0.0.2, engine.io-client@1.5.1)


引用来自“wklc2014”的评论

请问是我还有哪里出错了吗

引用来自“lieefu”的评论

看见这句错误提示了么?
gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable.

你还需要安装python,或者设置正确的PYTHON环境变量。
题外话,在windows下用nodejs,真心不方便,换Linux吧

不过我只会用window的视窗界面,做前端开发,没接触太多的后台语言,最近想用nodejs+socket.io做多屏互动,所以来网上找资料学习下。

刚安装了python,环境变量也成功设置,path变量里也有对应路径。

但是再次安装的时候,又报了其他错:

MSBUILD : error MSB3428: 未能加载 Visual C++ 组件“VCBuild.exe”。要解决此问题,
1) 安装 .NET Fram
ework 2.0 SDK;2) 安装 Microsoft Visual Studio 2005;或 3) 如果将该组件安装到了
其他位置,请将其位置添加到系统
路径中。 [C:\Program Files\nodejs\node_modules\socket.io\node_modules\engine.io\
nod
e_modules\ws\build\binding.sln]
MSBUILD : error MSB3428: 未能加载 Visual C++ 组件“VCBuild.exe”。要解决此问题,
1) 安装 .NET Fram
ework 2.0 SDK;2) 安装 Microsoft Visual Studio 2005;或 3) 如果将该组件安装到了
其他位置,请将其位置添加到系统
路径中。 [C:\Program Files\nodejs\node_modules\socket.io\node_modules\engine.io\
nod
e_modules\ws\build\binding.sln]

似乎是我.net framework 2.0 sdk没安装吗?我查了我程序,安装了.net framework 4.0,是不是要重新下个.net framework 2.0 sdk安装呢?

0
lieefu
lieefu
已经不用windows好多年,windows下开发,毫无快乐可言!
0
yak
yak
windows看片打游戏,那叫一个爽
返回顶部
顶部