解决 binding.gyp not found (xxx/xxx/xxx) while trying to load binding.gyp 问题 在使用ccap图形验证码模块时遇到这个问题 Error: gyp failed with exit code: 1 于是我手动删了rm -rf ~/.node-gyp/ 目录下的文件重新执行了npm install node-gyp -g,但并没有解决问题,反而来了一个新问题 binding.gyp not found (xxx/xxx/xxx)…
Linux, Mac OS X, Solaris, etc. Unix is easy. Just run the following command. Use sudo if necessary. $ [sudo] npm explore npm -g -- npm install node-gyp@latest From: http://lovewindy.com/node-updating-npms-bundled-node-gyp/…