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.

Can not install turtle-cli on mac os

See original GitHub issue

New Issue Checklist

I can’t install turtle-cli on my mac os

Issue Description

Command executed

$ sudo npm install -g turtle-cli

Complete output when running turtle, including the stack trace and command used
 node-pre-gyp ERR! stack     at ChildProcess.<anonymous> (/usr/local/lib/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:248:5)
node-pre-gyp ERR! System Darwin 19.2.0
node-pre-gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/grpc/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build" "--library=static_library"
node-pre-gyp ERR! cwd /usr/local/lib/node_modules/grpc
node-pre-gyp ERR! node -v v10.5.0
node-pre-gyp ERR! node-pre-gyp -v v0.14.0
node-pre-gyp ERR! not ok
Failed to execute '/usr/local/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --library=static_library --module=/usr/local/lib/node_modules/grpc/src/node/extension_binary/node-v64-darwin-x64-unknown/grpc_node.node --module_name=grpc_node --module_path=/usr/local/lib/node_modules/grpc/src/node/extension_binary/node-v64-darwin-x64-unknown --napi_version=3 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v64' (1)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! grpc@1.24.2 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.24.2 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/liaojiwei/.npm/_logs/2020-02-07T06_45_35_958Z-debug.log

Environment

 Expo CLI 3.11.5 environment info:
    System:
      OS: macOS 10.15.2
      Shell: 5.7.1 - /bin/zsh
    Binaries:
      Node: 12.12.0 - /usr/local/bin/node
      Yarn: 1.22.0 - /usr/local/bin/yarn
      npm: 6.11.3 - /usr/local/bin/npm
      Watchman: 4.9.0 - /usr/local/bin/watchman
    IDEs:
      Android Studio: 3.5 AI-191.8026.42.35.6010548
      Xcode: 11.3.1/11C504 - /usr/bin/xcodebuild
    npmGlobalPackages:
      expo-cli: 3.11.5 

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
rehmankhalil1001commented, Mar 20, 2020

@sp0033212000 can you guide me on how to use nvm, i installed it using : .

But i am not sure how to use it to install turtle CLI. The npm install -g turtle-cli command fails with the following error:

npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! sharp@0.22.1 install:(node install/libvips && node install/dll-copy && prebuild-install) || (node-gyp rebuild && node install/dll-copy)` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the sharp@0.22.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/apple/.npm/_logs/2020-03-20T15_56_34_627Z-debug.log`

I am using Macos Catalina, version 10.15.3.

Thank you in advance 😃

2reactions
rehmankhalil1001commented, Mar 31, 2020

@Jozott00 as mentioned above by @dsokal, it works using NVM. what i did:

  1. Understood how NVM works(never used it before)
  2. Installed and Used node version 12.0.0(Mentioned in one of the forums)
  3. Globally installed turtle-cli and used
  4. Builds APK and AAB

Unfortunately when i install it on simulator or real device, my react native APK build does not seem to work and i had to go back to using the expo build command.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot install turtle-cli with npm install -g
I found the answer, it's pretty simple, I just need to add --unsafe-perm flag to the command: sudo npm install -g turtle-cli --unsafe-perm....
Read more >
turtle-cli
Start using turtle-cli in your project by running `npm i turtle-cli`. There are no other projects in the npm registry using turtle-cli.
Read more >
Build your standalone Expo App locally with Turtle CLI
Build iOS .ipa and Android .apk expo app locally by using Turtle CLI ... Then you can check if Turtle CLI is properly...
Read more >
Installing and updating the Bitrise CLI
Installing the Bitrise CLI is super simple. It is distributed as a single binary for macOS and Linux which you can acquire in...
Read more >
Installation - Turtle's documentation! - Read the Docs
No information is available for this page.
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