Node.js 找不到的预构建二进制文件grpc@1.10.1及node@10.9.0

Node.js 找不到的预构建二进制文件grpc@1.10.1及node@10.9.0,node.js,firebase,npm,Node.js,Firebase,Npm,当我尝试在项目中安装node_模块时,收到大量错误消息。我以前已经成功安装了它,但我不确定我做错了什么导致现在生成所有这些错误消息 任何有助于破译它们的意思的东西都会很好。在此之前,我安装了以下grpc,安装了v1.14.1: $ npm install -g grpc@latest grpc@1.14.1 install /usr/local/lib/node_modules/grpc node-pre-gyp install --fallback-to-build --library=st

当我尝试在项目中安装node_模块时,收到大量错误消息。我以前已经成功安装了它,但我不确定我做错了什么导致现在生成所有这些错误消息

任何有助于破译它们的意思的东西都会很好。在此之前,我安装了以下grpc,安装了v1.14.1:

$ npm install -g grpc@latest

grpc@1.14.1 install /usr/local/lib/node_modules/grpc
node-pre-gyp install --fallback-to-build --library=static_library

node-pre-gyp WARN Using needle for node-pre-gyp https download 
[grpc] Success: "/usr/local/lib/node_modules/grpc/src/node/extension_binary/node-v64-darwin-x64-unknown/grpc_node.node" is installed via remote
+ grpc@1.14.1
added 85 packages from 48 contributors in 6.344s
因此,很奇怪为什么node试图在以下消息中使用v1.10.1:

$ npm i

> fsevents@1.2.4 install /path/to/app/node_modules/fsevents
> node install

[fsevents] Success: "/path/to/app/node_modules/fsevents/lib/binding/Release/node-v64-darwin-x64/fse.node" already installed
Pass --update-binary to reinstall or --build-from-source to recompile

> grpc@1.10.1 install /path/to/app/node_modules/@firebase/firestore/node_modules/grpc
> node-pre-gyp install --fallback-to-build --library=static_library

node-pre-gyp ERR! Tried to download(403): https://storage.googleapis.com/grpc-precompiled-binaries/node/grpc/v1.10.1/node-v64-darwin-x64-unknown.tar.gz 
node-pre-gyp ERR! Pre-built binaries not found for grpc@1.10.1 and node@10.9.0 (node-v64 ABI, unknown) (falling back to source compile with node-gyp) 
node-pre-gyp ERR! Pre-built binaries not installable for grpc@1.10.1 and node@10.9.0 (node-v64 ABI, unknown) (falling back to source compile with node-gyp) 
node-pre-gyp ERR! Hit error Connection closed while downloading tarball file 
  CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/surface/init.o
  CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/surface/init.o
sed: ./Release/.deps/Release/obj.target/grpc/deps/grpc/src/core/lib/surface/init.o.d.raw: No such file or directory
  CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/avl/avl.o
rm: ./Release/.deps/Release/obj.target/grpc/deps/grpc/src/core/lib/surface/init.o.d.raw: No such file or directory
make: *** [Release/obj.target/grpc/deps/grpc/src/core/lib/surface/init.o] Error 1
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:262:23)
gyp ERR! stack     at ChildProcess.emit (events.js:182:13)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:239:12)
gyp ERR! System Darwin 17.7.0
gyp ERR! command "/usr/local/Cellar/node/10.9.0/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--library=static_library" "--module=/path/to/app/node_modules/@firebase/firestore/node_modules/grpc/src/node/extension_binary/node-v64-darwin-x64-unknown/grpc_node.node" "--module_name=grpc_node" "--module_path=/path/to/app/node_modules/@firebase/firestore/node_modules/grpc/src/node/extension_binary/node-v64-darwin-x64-unknown"
gyp ERR! cwd /path/to/app/node_modules/@firebase/firestore/node_modules/grpc
gyp ERR! node -v v10.9.0
gyp ERR! node-gyp -v v3.7.0
gyp ERR! not ok 
node-pre-gyp ERR! build error 
node-pre-gyp ERR! stack Error: Failed to execute '/usr/local/Cellar/node/10.9.0/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --library=static_library --module=/path/to/app/node_modules/@firebase/firestore/node_modules/grpc/src/node/extension_binary/node-v64-darwin-x64-unknown/grpc_node.node --module_name=grpc_node --module_path=/path/to/app/node_modules/@firebase/firestore/node_modules/grpc/src/node/extension_binary/node-v64-darwin-x64-unknown' (1)
node-pre-gyp ERR! stack     at ChildProcess.<anonymous> (/path/to/app/node_modules/@firebase/firestore/node_modules/grpc/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
node-pre-gyp ERR! stack     at ChildProcess.emit (events.js:182:13)
node-pre-gyp ERR! stack     at maybeClose (internal/child_process.js:961:16)
node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:250:5)
node-pre-gyp ERR! System Darwin 17.7.0
node-pre-gyp ERR! command "/usr/local/Cellar/node/10.9.0/bin/node" "/path/to/app/node_modules/@firebase/firestore/node_modules/grpc/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build" "--library=static_library"
node-pre-gyp ERR! cwd /path/to/app/node_modules/@firebase/firestore/node_modules/grpc
node-pre-gyp ERR! node -v v10.9.0
node-pre-gyp ERR! node-pre-gyp -v v0.7.0
node-pre-gyp ERR! not ok 
Failed to execute '/usr/local/Cellar/node/10.9.0/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --library=static_library --module=/path/to/app/node_modules/@firebase/firestore/node_modules/grpc/src/node/extension_binary/node-v64-darwin-x64-unknown/grpc_node.node --module_name=grpc_node --module_path=/path/to/app/node_modules/@firebase/firestore/node_modules/grpc/src/node/extension_binary/node-v64-darwin-x64-unknown' (1)
  CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/backoff/backoff.oexec install script
  CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/channel/channel_args.oinstall script
error: error reading '../deps/grpc/src/core/lib/channel/channel_args.cc'
1 error generated.
make: *** [Release/obj.target/grpc/deps/grpc/src/core/lib/channel/channel_args.o] Error 1
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:262:23)
gyp ERR! stack     at ChildProcess.emit (events.js:182:13)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:239:12)
gyp ERR! System Darwin 17.7.0l: info lifecycle grpc@1.10.1~install: Failed to exec install script
gyp ERR! command "/usr/local/Cellar/node/10.9.0/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--library=static_library" "--module=/path/to/app/node_modules/@firebase/firestore/node_modules/grpc/src/node/extension_binary/node-v64-darwin-x64-unknown/grpc_node.node" "--module_name=grpc_node" "--module_path=/path/to/app/node_modules/@firebase/firestore/node_modules/grpc/src/node/extension_binary/node-v64-darwin-x64-unknown"
gyp ERR! cwd /path/to/app/node_modules/@firebase/firestore/node_modules/grpc
gyp ERR! node -v v10.9.0
gyp ERR! node-gyp -v v3.7.0
gyp ERR! not ok 
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! grpc@1.10.1 install: `node-pre-gyp install --fallback-to-build --library=static_library`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the grpc@1.10.1 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/myfolder/.npm/_logs/2018-09-03T16_54_49_177Z-debug.log
$npm i
> fsevents@1.2.4安装/path/to/app/node_模块/fsevents
>节点安装
[fsevents]成功:“/path/to/app/node_modules/fsevents/lib/binding/Release/node-v64-darwin-x64/fse.node”已安装
传递--update binary以重新安装,或传递--build from source以重新编译
> grpc@1.10.1安装/path/to/app/node_modules/@firebase/firestore/node_modules/grpc
>节点预gyp安装--回退到构建--库=静态\u库
节点前gyp错误!已尝试下载(403):https://storage.googleapis.com/grpc-precompiled-binaries/node/grpc/v1.10.1/node-v64-darwin-x64-unknown.tar.gz 
节点前gyp错误!找不到的预构建二进制文件grpc@1.10.1及node@10.9.0(node-v64 ABI,未知)(使用node-gyp返回到源代码编译)
节点前gyp错误!无法为安装预构建的二进制文件grpc@1.10.1及node@10.9.0(node-v64 ABI,未知)(使用node-gyp返回到源代码编译)
节点前gyp错误!下载tarball文件时命中错误连接关闭
CXX(目标)发布/obj.target/grpc/deps/grpc/src/core/lib/surface/init.o
CXX(目标)发布/obj.target/grpc/deps/grpc/src/core/lib/surface/init.o
sed:./Release/.deps/Release/obj.target/grpc/deps/grpc/src/core/lib/surface/init.o.d.raw:没有这样的文件或目录
CXX(目标)发布/obj.target/grpc/deps/grpc/src/core/lib/avl/avl.o
rm:./Release/.deps/Release/obj.target/grpc/deps/grpc/src/core/lib/surface/init.o.d.raw:没有这样的文件或目录
make:**[Release/obj.target/grpc/deps/grpc/src/core/lib/surface/init.o]错误1
哎呀!构建错误
哎呀!堆栈错误:`make`失败,退出代码:2
哎呀!堆栈位于ChildProcess.onExit(/usr/local/lib/node_modules/npm/node_modules/node gyp/lib/build.js:262:23)
哎呀!ChildProcess.emit上的堆栈(events.js:182:13)
哎呀!在Process.ChildProcess.\u handle.onexit(internal/child\u Process.js:239:12)处堆栈
哎呀!达尔文系统17.7.0
哎呀!命令“/usr/local/cillar/node/10.9.0/bin/node”“/usr/local/lib/node_modules/npm/node_modules/node gyp/bin/node gyp.js”“build”“--fallback to build”“--library=static_library”“--module=/path/to/app/node_modules/@firebase/firestore/node_modules/grpc/src/node/ext/extension_binary/node/node/node/node/node/node/node/node-v64-达尔文-x64-unknown/“--module_path=/path/to/app/node_modules/@firebase/firestore/node_modules/grpc/src/node/extension_binary/node-v64-darwin-x64-unknown”
gyp ERR!cwd/path/to/app/node_modules/@firebase/firestore/node_modules/grpc
GypErr!节点-v10.9.0
gyp ERR!节点gyp-v3.7.0
哎呀!不行
节点预gyp错误!生成错误
node pre-gyp ERR!堆栈错误:未能执行“/usr/local/cillar/node/10.9.0/bin/node/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build--fallback to build--library=static_library--module=/path/to/app/node_modules/@firebase/firestore/node_modules/grpc/src/src/node/extension_binary/node-v64-darwin-x64-unknown/grpc_de--module_name=grpc_node--module_path=/path/to/app/node_modules/@firebase/firestore/node_modules/grpc/src/node/extension_binary/node-v64-darwin-x64-unknown'(1)
node pre-gyp ERR!在ChildProcess上堆栈。(/path/to/app/node_modules/@firebase/firestore/node_modules/grpc/node_modules/node pre-gyp/lib/util/compile.js:83:29)
ChildProcess.emit(events.js:182:13)处的节点pre-gyp ERR!堆栈
maybeClose处的节点预gyp ERR!堆栈(internal/child_process.js:961:16)
node pre-gyp ERR!在Process.ChildProcess.\u handle.onexit处堆栈(internal/child\u Process.js:250:5)
节点预gyp错误!系统达尔文17.7.0
node pre-gyp ERR!command“/usr/local/cillar/node/10.9.0/bin/node”“/path/to/app/node_modules/@firebase/firestore/node_modules/grpc/node_modules/.bin/node-pre-gyp”“安装”“--回退到构建”“--库=静态_库”
节点前gyp ERR!cwd/path/to/app/node_modules/@firebase/firestore/node_modules/grpc
节点前gyp错误!节点-v10.9.0
节点预gyp错误!节点预gyp-v0.7.0
节点预gyp错误!不正常
未能执行“/usr/local/ceral/node/10.9.0/bin/node/usr/local/lib/node_modules/npm/node_modules/node gyp/bin/node-gyp.js build--fallback to build--library=static_library--module=/path/to/app/node_modules/@firebase/firestore/node_modules/grpc/src/node/extension_binary/node/node-v64-darwin-x64-unknown/grpc_node-node---node---module_path=/path/to/app/node_modules/@firebase/firestore/node_modules/grpc/src/node/extension_binary/node-v64-darwin-x64-unknown'(1)
CXX(目标)发行版/obj.target/grpc/deps/grpc/src/core/lib/backoff/backoff.oexec安装脚本
CXX(目标)发布/obj.target/grpc/deps/grpc/src/core/lib/channel/channel_args.oinstall脚本
错误:读取“../deps/grpc/src/core/lib/channel/channel_args.cc”时出错
生成1个错误。
make:**[Release/obj.target/grpc/deps/grpc/src/core/lib/channel/channel_args.o]错误1
gyp错误!生成错误
gyp ERR!堆栈错误:`make`失败,退出代码:2
gyp ERR!在ChildProcess.onExit(/usr/local/lib/node_modules/npm/node_modules/node gyp/lib/build.js:262:23)处堆栈
ChildProcess.emit(events.js:182:13)上的gyp ERR!堆栈
gyp ERR!在Process.ChildProcess.\u handle.onexit处堆栈(internal/child\u Process.js:239:12)
gyp ERR!系统达尔文17.7.0l:信息生命周期grpc@1.10.1~install:无法执行安装脚本
gyp ERR!command“/usr/local/cillar/node/10.9.0/bin/node”“/usr/local/lib/node_modules/npm/node_modules/node gyp/bin/node gyp.js”“build”“--回退到构建”“--库=静态_库”“--模块=/path/to/app/node_modules/@firebase/firestore/node_module
npm i firebase@latest
1 - npm update
2 - npm install