node-gyp安装 报错if not defined npm_config_node_gyp
解决if not defined npm_config_node_gyp
第一步
1 | npm install -g node-gyp |
第二步
1 | npm config set node_gyp "node C:\Users\me\AppData\Roaming\npm\node_modules\node-gyp\bin\node-gyp.js" |
转载于: https://www.cnblogs.com/Mr-Hawaii-Felix/p/10502298.html