gRPC – Failed at the grpc@1.18.0 install script ‘node-pre-gyp install –fallback-to-build –library=static_library’.
按照官方文档部署环境(也看过别的步骤,但最终还是认为这个最靠谱),到”Run a gRPC application”->”Run the server”的时候卡住了,npm install 时会报错。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
vagrant@homestead:~/grpc/examples/node$ npm install > grpc@1.18.0 install /home/vagrant/grpc/examples/node/node_modules/grpc > node-pre-gyp install --fallback-to-build --library=static_library sh: 1: node-pre-gyp: not found npm ERR! Linux 4.4.0-81-generic npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" npm ERR! node v6.11.1 npm ERR! npm v3.10.10 npm ERR! file sh npm ERR! code ELIFECYCLE npm ERR! errno ENOENT npm ERR! syscall spawn npm ERR! grpc@1.18.0 install: `node-pre-gyp install --fallback-to-build --library=static_library` npm ERR! spawn ENOENT npm ERR! npm ERR! Failed at the grpc@1.18.0 install script 'node-pre-gyp install --fallback-to-build --library=static_library'. npm ERR! Make sure you have the latest version of node.js and npm installed. npm ERR! If you do, this is most likely a problem with the grpc package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! node-pre-gyp install --fallback-to-build --library=static_library npm ERR! You can get information on how to open an issue for this project with: npm ERR! npm bugs grpc npm ERR! Or if that isn't available, you can get their info via: npm ERR! npm owner ls grpc npm ERR! There is likely additional logging output above. npm ERR! Please include the following file with any support request: npm ERR! /home/vagrant/grpc/examples/node/npm-debug.log vagrant@homestead:~/grpc/examples/node$ |
看上去是没办法执行 n[……]