初學node.js,嘗試運行node.js in action的代碼出現(xiàn)了無法安裝bcrypt module的問題,按照http://henzil./?p=510
操作后還是有問題,希望能得到解答,十分感謝!
D:\node\nodejsinaction\9\shoutbox>npm install bcrypt
npm http GET https://registry./bcrypt/0.7.3
npm http 304 https://registry./bcrypt/0.7.3
npm http GET https://registry./bindings/1.0.0
npm http 304 https://registry./bindings/1.0.0
bcrypt@0.7.3 install D:\node\nodejsinaction\9\shoutbox\node_modules\bcrypt
node-gyp rebuild
D:\node\nodejsinaction\9\shoutbox\node_modules\bcrypt>node “D:\node_modules\npm
bin\node-gyp-bin\…\node_modules\node-gyp\bin\node-gyp.js” rebuild
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.Cpp.InvalidPlatform
.Targets(23,7): error MSB8007: 項目“bcrypt_lib.vcxproj”的平臺無效。平臺為“x64
”。您會看到此消息的可能原
因是,您嘗試在沒有解決方案文件的情況下生成項目,并且為此項目指定了并不存在的非默
認平臺。 [D:\node\nodejsinaction\9\shoutbox
\node_modules\bcrypt\build\bcrypt_lib.vcxproj]
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:\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:
gyp ERR! System Windows_NT 6.1.7601
gyp ERR! command “node” “D:\node_modules\npm\node_modules\node-gyp\bin\nod
e-gyp.js” "rebuild"
gyp ERR! cwd D:\node\nodejsinaction\9\shoutbox\node_modules\bcrypt
gyp ERR! node -v v0.10.24
gyp ERR! node-gyp -v v0.12.1
gyp ERR! not ok
npm ERR! bcrypt@0.7.3 install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the bcrypt@0.7.3 install script.
npm ERR! This is most likely a problem with the bcrypt package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get their info via:
npm ERR! npm owner ls bcrypt
|