前提・実現したいこと
Nuxt.jsアプリケーションを作成したディレクトリに
npm install --save firebase@6.2.4 でfirebaseのパッケージをインストールしたいがエラーが発生します。
発生している問題・エラーメッセージ
2 errors generated. make: *** [Release/obj.target/grpc_node/ext/call.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:194:23) gyp ERR! stack at ChildProcess.emit (events.js:315:20) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:276:12) gyp ERR! System Darwin 19.2.0 gyp ERR! command "/usr/local/Cellar/node/14.1.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=/Users/yokoyamaryouta/projects/nuxt-projects/nuxt-todo/node_modules/grpc/src/node/extension_binary/node-v83-darwin-x64-unknown/grpc_node.node" "--module_name=grpc_node" "--module_path=/Users/yokoyamaryouta/projects/nuxt-projects/nuxt-todo/node_modules/grpc/src/node/extension_binary/node-v83-darwin-x64-unknown" "--napi_version=6" "--node_abi_napi=napi" "--napi_build_version=0" "--node_napi_label=node-v83" gyp ERR! cwd /Users/yokoyamaryouta/projects/nuxt-projects/nuxt-todo/node_modules/grpc gyp ERR! node -v v14.1.0 gyp ERR! node-gyp -v v5.1.0 gyp ERR! not ok node-pre-gyp ERR! build error node-pre-gyp ERR! stack Error: Failed to execute '/usr/local/Cellar/node/14.1.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=/Users/yokoyamaryouta/projects/nuxt-projects/nuxt-todo/node_modules/grpc/src/node/extension_binary/node-v83-darwin-x64-unknown/grpc_node.node --module_name=grpc_node --module_path=/Users/yokoyamaryouta/projects/nuxt-projects/nuxt-todo/node_modules/grpc/src/node/extension_binary/node-v83-darwin-x64-unknown --napi_version=6 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v83' (1) node-pre-gyp ERR! stack at ChildProcess.<anonymous> (/Users/yokoyamaryouta/projects/nuxt-projects/nuxt-todo/node_modules/grpc/node_modules/node-pre-gyp/lib/util/compile.js:83:29) node-pre-gyp ERR! stack at ChildProcess.emit (events.js:315:20) node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:1051:16) node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:287:5) node-pre-gyp ERR! System Darwin 19.2.0 node-pre-gyp ERR! command "/usr/local/Cellar/node/14.1.0/bin/node" "/Users/yokoyamaryouta/projects/nuxt-projects/nuxt-todo/node_modules/grpc/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build" "--library=static_library" node-pre-gyp ERR! cwd /Users/yokoyamaryouta/projects/nuxt-projects/nuxt-todo/node_modules/grpc node-pre-gyp ERR! node -v v14.1.0 node-pre-gyp ERR! node-pre-gyp -v v0.13.0 node-pre-gyp ERR! not ok Failed to execute '/usr/local/Cellar/node/14.1.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=/Users/yokoyamaryouta/projects/nuxt-projects/nuxt-todo/node_modules/grpc/src/node/extension_binary/node-v83-darwin-x64-unknown/grpc_node.node --module_name=grpc_node --module_path=/Users/yokoyamaryouta/projects/nuxt-projects/nuxt-todo/node_modules/grpc/src/node/extension_binary/node-v83-darwin-x64-unknown --napi_version=6 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v83' (1) npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! grpc@1.20.3 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.20.3 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/yokoyamaryouta/.npm/_logs/2020-05-10T05_49_16_325Z-debug.log
試したこと
下記参考にXcodeコマンドラインツールは入れ直しています。
https://github.com/nodejs/node-gyp/blob/master/macOS_Catalina.md#i-did-all-that-and-the-acid-test-still-does-not-pass--
補足情報(FW/ツールのバージョンなど)
mac OS:Catalina 10.15.2
npm -v: 6.14.4
node -v: v14.1.0
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2020/05/10 06:56