Issue:
When running your build, you get an error message during dependency management (such as the NPM Step), like this:
npm ERR! Error: EACCES: permission denied, mkdir '/root/.npm/sentry-cli'
Possible solutions:
This likely happens due to Linux changing NodeJs versions, which you can solve by adding a Script Step before the dependency management Step that executes the following command:
sudo chown root .