sentry-cli: Failing to install @sentry/cli

 ls -la .
total 8
drwxrwxr-x  2 vigand vigand 4096 mars   7 10:20 .
drwxr-xr-x 49 vigand vigand 4096 mars   7 10:22 ..
npm i @sentry/cli
npm ERR! code 1
npm ERR! path /home/vigand/error_report/node_modules/@sentry/cli
npm ERR! command failed
npm ERR! command sh -c node scripts/install.js

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/vigand/.npm/_logs/2022-03-07T09_23_12_052Z-debug-0.log
uname -a
Linux vigand-XPS-15-9510 5.13.0-30-generic #33~20.04.1-Ubuntu SMP Mon Feb 7 14:25:10 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
node -v; npm -v
v16.14.0
8.3.1

After failing to install ‘@sentry/react-native’ in another project and getting the same error as above, I tried to install ‘@sentry/cli’ alone in an empty folder and I get the same issue command failed

Installation of other npm packages does work.

npm i helloworld; ls -la .

added 1 package, and audited 2 packages in 2s

found 0 vulnerabilities
total 20
drwxrwxr-x  3 vigand vigand 4096 mars   7 10:30 .
drwxr-xr-x 49 vigand vigand 4096 mars   7 10:30 ..
drwxrwxr-x  3 vigand vigand 4096 mars   7 10:30 node_modules
-rw-rw-r--  1 vigand vigand   55 mars   7 10:30 package.json
-rw-rw-r--  1 vigand vigand  638 mars   7 10:30 package-lock.json

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 22 (8 by maintainers)

Most upvoted comments

Hi again @kamilogorek ! I recently upgraded to ubuntu 22.04 and did a little clean up of my packages, it seems that I originally installed node using snap to get the latest version (you can see it in the logs in previous messages). That apparently caused the issue because I reinstalled it using apt and it works now.

Thanks, have a good one!

Thanks for your time and answer, I am going to use the 1st workaround, I only need @sentry/react-native for one project. package installation does work with ignore-scripts and the project is starting. Have a good week.