今天要用别人一个react的例子,在npm install的过程中,安装contextify时遇到了若干问题,最后逐一解决。
问题1:Failed at the contextify@0.1.14 install script 'node-gyp rebuild'
解决方法:https://github.com/bevacqua/perfschool/issues/5#issuecomment-128053964
npm install node-gyp-install && node ./node_modules/node-gyp-install/bin.js
问题2:Failed at the contextify@0.1.14 install script 'node-gyp rebuild'
> node-gyp rebuild
C:\Windows\system32\node_modules\caress-server\node_modules\buffertools>node "G:
\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-
gyp.js" rebuild
gyp ERR! configure error
gyp ERR! stack Error: Can't find Python executable "python", you can set the PYT
HON env variable.
解决方法:安装python
http://stackoverflow.com/a/21366601/2177408
问题3:TRACKER : error TRK0005: Failed to locate: "CL.exe". The system cannot find the file specified. [C:\Users\ss\Downloads\shout-master\node_modules\contextify\build\contextify.vcxproj]
解决方法:http://stackoverflow.com/a/33231506/2177408
- Install visual studio community 2013
- Run
npm config set msvs_version 2013 --global
- Run
npm install bcrypt