Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MacOS @sentry/cli@1.31.1 install failed #307

Closed
ericleearticle opened this issue May 22, 2018 · 7 comments
Closed

MacOS @sentry/cli@1.31.1 install failed #307

ericleearticle opened this issue May 22, 2018 · 7 comments

Comments

@ericleearticle
Copy link

ericleearticle commented May 22, 2018

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

> @sentry/cli@1.31.1 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/cli@1.31.1 install: `node scripts/install.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @sentry/cli@1.31.1 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/cli@1.31.1 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.

@maggialejandro
Copy link

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

@sginn
Copy link

sginn commented May 22, 2018

We worked around it by force installing 1.31.0.

npm install @sentry/cli@1.31.0
npm install 

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

@mitsuhiko
Copy link
Member

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: rustwasm/wasm-bindgen#186 (comment)

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.

@ericleearticle
Copy link
Author

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

@gucomecan
Copy link

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

@woltsu
Copy link

woltsu commented May 14, 2020

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

@artyom-88
Copy link

artyom-88 commented Jan 26, 2022

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

Why root is required? I'm not installing package globally.

Got similar problem with yarn install.

[4/6] ⠠ @sentry/cli
error /home/artem_ganev/Sources/import.io/zeus-ui/node_modules/@sentry/cli: Command failed.
Exit code: 1
Command: node scripts/install.js
Arguments: 

It looks like some yarn compatibility problem because npm install worked fine.
I have yarn 1.22.17 and node 14.18.3.
@sentry/cli is the dependency of @sentry/webpack-plugin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants