我尝试使用"npm install blueimp-file-upload-expressjs --save"
命令安装依赖项,但遗憾的是我最终收到错误消息,说明node-gyp重建失败了。我已经尝试了几乎所有我在互联网上找到的东西,比如;
"npm install -g node-gyp"
命令提及:
我安装了两个版本的python,因此我继续使用"npm config set python /path/to/executable/python2.7"
命令进行配置。我已经阅读了Node-Gyp github存储库descritptions并遵循了所有步骤。
我的操作系统是Windows 7(64位)。
对此问题的任何想法表示赞赏。
更新
CMD错误日志:
$ if not defined npm_config_node_gyp (node "D:\Node-JS\node_modules\npm\b in\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (rebuild)
gyp ERR! build error
gyp ERR! stack Error: ENOENT, open 'C:\Users\user\.node-gyp\0.12.4\x64\no de.lib'
gyp ERR! stack at Error (native)
gyp ERR! System Windows_NT 6.1.7601
gyp ERR! command "node" "D:\\Node-JS\\node_modules\\npm\\node_modules\\no de-gyp\\bin\\node-gyp.js" "rebuild" gyp ERR! cwd C:\Users\user\node_modules\blueimp-file-upload-expressjs\nod e_modules\lwip
gyp ERR! node -v v0.12.4
gyp ERR! node-gyp -v v1.0.3
gyp ERR! not ok
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "D:\\Node-JS\\\\node.exe" "D:\\Node-JS\\node_modules\\npm\\ bin\\npm-cli.js" "install" "blueimp-file-upload-expressjs" "--save"
npm ERR! node v0.12.4
npm ERR! npm v2.10.1
npm ERR! code ELIFECYCLE
npm ERR! lwip@0.0.6 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the lwip@0.0.6 install script 'node-gyp rebuild'.
npm ERR! This is most likely a problem with the lwip 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 lwip
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! C:\Users\user\npm-debug.log