Sentry-cli: MacOS @sentry/[email protected] install failed

Created on 22 May 2018  路  6Comments  路  Source: getsentry/sentry-cli

Hi all, this issue seems pretty popular but haven't got this until now with the latest release of CLI

> @sentry/[email protected] install /Users/article/workspace/article/project/public-src/node_modules/@sentry/cli
> node scripts/install.js

fetching sentry-cli-Darwin-x86_64 鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅 100% 0.0s
Error: Command failed: /Users/article/workspace/article/project/public-src/node_modules/@sentry/cli/sentry-cli --version

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @sentry/[email protected] install: `node scripts/install.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @sentry/[email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

The error shown in npm log:

298 verbose stack Error: @sentry/[email protected] install: `node scripts/install.js`
298 verbose stack Exit status 1
298 verbose stack     at EventEmitter.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:285:16)
298 verbose stack     at EventEmitter.emit (events.js:182:13)
298 verbose stack     at ChildProcess.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
298 verbose stack     at ChildProcess.emit (events.js:182:13)
298 verbose stack     at maybeClose (internal/child_process.js:957:16)
298 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:246:5)

Tried on Node 8, 10 with NPM 5.6.0
Would appreciate if I can get this out of the way or if there's workaround.

Most helpful comment

We worked around it by force installing 1.31.0.

npm install @sentry/[email protected]
npm install 

the second install is what pulls down react-native-sentry for us.

All 6 comments

Same here.
I was using node 8.11.1 with npm 5.6.0
I've upgraded to node 10.1.0 and npm 6.0.1 and the error persist.

Mac OS 10.13.4

We worked around it by force installing 1.31.0.

npm install @sentry/[email protected]
npm install 

the second install is what pulls down react-native-sentry for us.

The guess is that an update to LLVM triggered a bug in older xcode versions that we used to build this so we support down to macos 10.10: https://github.com/rustwasm/wasm-bindgen/issues/186#issuecomment-388373254

It was not caught because the build is only verified on macos 10.10. We're going to push out a build targeting newer macos versions now as this seems to be the most sensible fix.

Just want to follow up that it is working again after the update.
Thank you for the hard work!
Closing now

It is all about credentials. Start npm install from cmd started as admin/root

If you have Docker, then you can try this in the project folder:

docker run -v "$(pwd):/tmp" --rm node:14.2.0-stretch npm i @sentry/cli --prefix ./tmp
Was this page helpful?
0 / 5 - 0 ratings