Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

AliAbuArab's avatar

EACCES: permission denied, mkdir '/root/.npm/sentry-cli'

System: Ubunut 20.04 Node: v14.17.5 NPM: 7.20.6

I'm trying to install the nuxt sentry module but getting this error message:

npm ERR! code 1 npm ERR! command failed npm ERR! command sh -c node scripts/install.js npm ERR! info sentry-cli Downloading from https://downloads.sentry-cdn.com/sentry-cli/1.68.0/sentry-cli-Linux-x86_64 npm ERR! Error: EACCES: permission denied, mkdir '/root/.npm/sentry-cli'

npm ERR! A complete log of this run can be found in: npm ERR! /root/.npm/_logs/2021-08-21T10_04_03_979Z-debug.log

0 likes
3 replies
neilstee's avatar

or like this sudo npm install -g sentry-cli-binary --unsafe-perm=true

Please or to participate in this conversation.