question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Failed to install ndb

See original GitHub issue

Steps to reproduce

jsmith@jsmith-hp1:~/projs/$ sudo npm install -g ndb
/usr/bin/ndb -> /usr/lib/node_modules/ndb/ndb.js

> deasync@0.1.13 install /usr/lib/node_modules/ndb/node_modules/deasync
> node ./build.js

`linux-x64-node-8` exists; testing
Binary is fine; exiting

> node-pty-prebuilt@0.7.3 install /usr/lib/node_modules/ndb/node_modules/node-pty-prebuilt
> prebuild-install || node scripts/install.js

prebuild-install WARN install EACCES: permission denied, mkdir '/usr/lib/node_modules/ndb/node_modules/node-pty-prebuilt/build'
gyp ERR! configure error 
gyp ERR! stack Error: EACCES: permission denied, mkdir '/usr/lib/node_modules/ndb/node_modules/node-pty-prebuilt/build'
gyp ERR! System Linux 3.19.0-65-generic
gyp ERR! command "/usr/bin/nodejs" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /usr/lib/node_modules/ndb/node_modules/node-pty-prebuilt
gyp ERR! node -v v8.4.0
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok 

Tell us about your environment:

  • ndb version: n/a (initial installation)
  • Platform / OS version: ubuntu 14.04 64bit.
  • Node.js version: 8.4.0

What steps will reproduce the problem?

Seeing the error mkdir '/usr/lib/node_modules/ndb/node_modules/node-pty-prebuilt/build', I tried to manually created directory ‘/usr/lib/node_modules/ndb/node_modules/node-pty-prebuilt/’ but I got the same error when I tried to install it again.

What is the expected result?

What happens instead?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:8
  • Comments:17

github_iconTop GitHub Comments

38reactions
raskanskyzcommented, Jul 25, 2018

sudo npm install -g ndb --unsafe-perm=true --allow-root ftw

10reactions
ghostcommented, Jul 25, 2018

Thanks, worked for me with --unsafe-perm=true

Read more comments on GitHub >

github_iconTop Results From Across the Web

node.js - Nodejs ndb installation ERROR: Failed to download ...
1 Answer 1 · Try to install ndb with this command : PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=1 sudo npm install -g ndb --unsafe-perm=true --allow-root ...
Read more >
MySQL NDB Cluster install on RHEL 7 fails — oracle-tech
Hi, I am currently trying to install MySQL NDB Cluster 7.6 using Auto-installer on RHEL 7 which currently fails with below error:
Read more >
2.7.4 NDB Cluster Error Handling - MySQL :: Developer Zone
Temporary errors. When first starting a node, it is possible that you may see Error 1204 Temporary failure, distribution changed and similar temporary...
Read more >
UNABLE TO INSTALL OR ADD ANY SOFTWARE IN ...
warning: Found BDB Packages database while attempting ndb backend: using bdb_ro backend. Problem occurred during or after installation or ...
Read more >
Error "com/sap/ndb/studio/modeler/base ...
It is Java problem. either Java updated and not installed. Please check java installed or not and path configuration. Add a Comment ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found