Sentry-react-native: npm i (or yarn install) fails to complete with errors coming from the sentry package

Created on 22 May 2018  ·  9Comments  ·  Source: getsentry/sentry-react-native

OS:

  • [ ] Windows
  • [x] MacOS
  • [ ] Linux

_Platform:_

  • [x] iOS
  • [x] Android

Output of node -v && npm -v && yarn --version && npm ls --prod --depth=0

v8.9.3
6.0.1
1.3.2
[email protected] /Users/aaron/code/synapse/helia/HeliaConnect
├── @redux-offline/[email protected]
├── @synapsestudios/[email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
└── [email protected]

Config:

Sentry.config('https://[email protected]/...', {
  // nothing
}).install()

I have following issue:

npm i fails with the following error:

Error: Command failed: /Users/aaron/code/path/to/project/node_modules/@sentry/cli/sentry-cli --version

Steps to reproduce:

  • lock react-native-sentry to any version in package.json (tried with 0.35.0 through 0.37.0)
  • remove node_modules and package-lock.json (or yarn-lock.json)
  • run npm i or yarn

Actual result:

  • Fails with error reported above

Expected result:

  • Successfully installs :P

All 9 comments

Here is the issue on sentry-cli repo
https://github.com/getsentry/sentry-cli/issues/307

Anybody who finds this issue - There's a work around from the above sentry-cli issue. Do npm i @sentry/[email protected] --save on your project.

(edit: updating command to be correct)

@spruce-bruce you probably meant npm i @sentry/[email protected] --save

similar error coming from the webpack plugin too.

@lfkwtz you're right! i'm a notorious typoist...

We are working on a fix, stay tuned.

fixed for me in [email protected]

Closing this, if you are still running into this, please upgrade to > [email protected].

Thanks!

Was this page helpful?
0 / 5 - 0 ratings