Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Access denied error with node-gyp?

Hi there,

I'm building a deployment pipeline which uses a custom built script to ship files to servers via node & ssh but I'm apparently there's an issue with permissions somewhere. I'm at a loss.

This is the error:

+ sudo npx ssh:// --version

gyp ERR! configure error

gyp ERR! stack Error: EACCES: permission denied, stat '/root/.npm/_npx/55/lib/node_modules/repo/node_modules/cpu-features/.node-gyp/8.16.1'

gyp ERR! System Linux 5.4.92-flatcar

gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"

gyp ERR! cwd /root/.npm/_npx/55/lib/node_modules/repo/node_modules/cpu-features

gyp ERR! node -v v8.16.1

gyp ERR! node-gyp -v v3.8.0

gyp ERR! not ok


throw err;


Error: Cannot find module '/root/.npm/_npx/55/lib/node_modules/repo/node_modules/ssh2/install.js'

at Function.Module._resolveFilename (module.js:548:15)

at Function.Module._load (module.js:475:25)

at Function.Module.runMain (module.js:694:10)

at startup (bootstrap_node.js:204:16)

at bootstrap_node.js:625:3


npm ERR! errno 1

npm ERR! ssh2@1.4.0 install: `node install.js`

npm ERR! Exit status 1

npm ERR!

npm ERR! Failed at the ssh2@1.4.0 install script.

npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:

npm ERR! /root/.npm/_logs/2021-09-08T15_24_22_532Z-debug.log

Install for git+ssh:// failed with code 1


Any idea how to solve the issue?

1 answer

0 votes

How did you solve that error? Thanks

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Bitbucket

📣 Calling Bitbucket Data Center customers to participate in research

Hi everyone, Are you Bitbucket DC customer? If so, we'd love to talk to you! Our team wants to dive deep to understand your long-term plans regarding Bitbucket DC and Atlassian Cloud. Do you plan...

129 views 2 4
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you