question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

MacOS 10.13.4 Can't install grpc

See original GitHub issue

Can’t install grpc on MacOS 10.13.4 I run but getting following error npm config set python /usr/bin/python2.7 npm install grpc --python=python2.7

CXX(target) Release/obj.target/grpc/deps/grpc/src/core/ext/filters/message_size/message_size_filter.o
  CXX(target) Release/obj.target/grpc/deps/grpc/src/core/ext/filters/workarounds/workaround_cronet_compression_filter.o
  CXX(target) Release/obj.target/grpc/deps/grpc/src/core/ext/filters/workarounds/workaround_utils.o
  CXX(target) Release/obj.target/grpc/deps/grpc/src/core/plugin_registry/grpc_plugin_registry.o
  LIBTOOL-STATIC Release/libgrpc.a
Traceback (most recent call last):
  File "./gyp-mac-tool", line 611, in <module>
    sys.exit(main(sys.argv[1:]))
  File "./gyp-mac-tool", line 28, in main
    exit_code = executor.Dispatch(args)
  File "./gyp-mac-tool", line 43, in Dispatch
    return getattr(self, method)(*args[1:])
  File "./gyp-mac-tool", line 246, in ExecFilterLibtool
    if not libtool_re.match(line) and not libtool_re5.match(line):
TypeError: cannot use a string pattern on a bytes-like object
make: *** [Release/libgrpc.a] Error 1
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/Users/nuruddin/.nvm/versions/node/v10.0.0/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:258:23)
gyp ERR! stack     at ChildProcess.emit (events.js:182:13)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:225:12)
gyp ERR! System Darwin 17.5.0
gyp ERR! command "/Users/nuruddin/.nvm/versions/node/v10.0.0/bin/node" "/Users/nuruddin/.nvm/versions/node/v10.0.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--library=static_library" "--module=/Users/nuruddin/Desktop/io-website/node_modules/grpc/src/node/extension_binary/node-v64-darwin-x64-unknown/grpc_node.node" "--module_name=grpc_node" "--module_path=/Users/nuruddin/Desktop/io-website/node_modules/grpc/src/node/extension_binary/node-v64-darwin-x64-unknown"
gyp ERR! cwd /Users/nuruddin/Desktop/io-website/node_modules/grpc
gyp ERR! node -v v10.0.0
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute '/Users/nuruddin/.nvm/versions/node/v10.0.0/bin/node /Users/nuruddin/.nvm/versions/node/v10.0.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --library=static_library --module=/Users/nuruddin/Desktop/io-website/node_modules/grpc/src/node/extension_binary/node-v64-darwin-x64-unknown/grpc_node.node --module_name=grpc_node --module_path=/Users/nuruddin/Desktop/io-website/node_modules/grpc/src/node/extension_binary/node-v64-darwin-x64-unknown' (1)
node-pre-gyp ERR! stack     at ChildProcess.<anonymous> (/Users/nuruddin/Desktop/io-website/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:947:16)
node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:236:5)
node-pre-gyp ERR! System Darwin 17.5.0
node-pre-gyp ERR! command "/Users/nuruddin/.nvm/versions/node/v10.0.0/bin/node" "/Users/nuruddin/Desktop/io-website/node_modules/grpc/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build" "--library=static_library"
node-pre-gyp ERR! cwd /Users/nuruddin/Desktop/io-website/node_modules/grpc
node-pre-gyp ERR! node -v v10.0.0
node-pre-gyp ERR! node-pre-gyp -v v0.7.0
node-pre-gyp ERR! not ok
Failed to execute '/Users/nuruddin/.nvm/versions/node/v10.0.0/bin/node /Users/nuruddin/.nvm/versions/node/v10.0.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --library=static_library --module=/Users/nuruddin/Desktop/io-website/node_modules/grpc/src/node/extension_binary/node-v64-darwin-x64-unknown/grpc_node.node --module_name=grpc_node --module_path=/Users/nuruddin/Desktop/io-website/node_modules/grpc/src/node/extension_binary/node-v64-darwin-x64-unknown' (1)
npm WARN ajv-keywords@2.1.1 requires a peer of ajv@^5.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN eslint-config-esnext@1.6.0 requires a peer of eslint@~3.4.0 but none is installed. You must install peer dependencies yourself.
npm WARN eslint-config-recommended@1.5.0 requires a peer of eslint@~3.4.0 but none is installed. You must install peer dependencies yourself.
npm WARN eslint-plugin-import@1.14.0 requires a peer of eslint@2.x - 3.x but none is installed. You must install peer dependencies yourself.
npm WARN eslint-plugin-react@6.2.2 requires a peer of eslint@^2.0.0 || ^3.0.0 but none is installed. You must install peer dependencies yourself.

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.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:6
  • Comments:12 (4 by maintainers)

github_iconTop GitHub Comments

42reactions
samuriacommented, May 24, 2018

@nicolasnoble node -v is v8.11.1 though?

Edit: fixed issue by downgrading project node to v9.9.0.

10reactions
nicolasnoblecommented, May 23, 2018

You’re trying to install an older version of gRPC on node 10. We didn’t have support for node 10 at the time.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Can't install macOS High Sierra 10.13.4 - Apple Community
Can't install macOS High Sierra 10.13.4. I downloaded the update via the App Store but upon restart to install the update there is...
Read more >
Install grpc extension on Mac OS Big Sur - Stack Overflow
I have installed grpc pecl grpc install after a bunch of attempt I have finally compile and installed it with pecl. extensions are...
Read more >
Docker Desktop for Mac Edge release notes
Docker Desktop now correctly displays the state of “Use gRPC FUSE for file ... Re-enable raw as the default disk format for users...
Read more >
How to debug remote cache misses - Google Groups
Hi,. I'm investigating using Bazel at work, as the remote caching holds a lot of promise for speeding up our dev loop. Unfortunately,...
Read more >
Thrift 0.12 - Rendered Obsolete
Could not get compiling on OSX 10.13.4 ./configure && make -j4 && sudo make install # Instead install via brew brew install bison...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found