Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Errors during 'npm install' #8

Open
vervaekejonathan opened this issue Feb 25, 2018 · 3 comments
Open

Errors during 'npm install' #8

vervaekejonathan opened this issue Feb 25, 2018 · 3 comments

Comments

@vervaekejonathan
Copy link

vervaekejonathan commented Feb 25, 2018

Got this error during 'npm install' on ubuntu 17.10

gyp ERR! build error
gyp ERR! stack Error: make failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:258:23)
gyp ERR! stack at emitTwo (events.js:125:13)
gyp ERR! stack at ChildProcess.emit (events.js:213:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
gyp ERR! System Linux 4.13.0-36-generic
gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--module=/home//projects/google_cloud/google-cloud-datastore-tutorial/node_modules/@google-cloud/compute/node_modules/grpc/src/node/extension_binary/grpc_node.node" "--module_name=grpc_node" "--module_path=/home//projects/google_cloud/google-cloud-datastore-tutorial/node_modules/@google-cloud/compute/node_modules/grpc/src/node/extension_binary"
gyp ERR! cwd /home//projects/google_cloud/google-cloud-datastore-tutorial/node_modules/@google-cloud/compute/node_modules/grpc
gyp ERR! node -v v8.8.1
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute '/usr/bin/node /usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/home/
/projects/google_cloud/google-cloud-datastore-tutorial/node_modules/@google-cloud/compute/node_modules/grpc/src/node/extension_binary/grpc_node.node --module_name=grpc_node --module_path=/home//projects/google_cloud/google-cloud-datastore-tutorial/node_modules/@google-cloud/compute/node_modules/grpc/src/node/extension_binary' (1)
node-pre-gyp ERR! stack at ChildProcess. (/home/
/projects/google_cloud/google-cloud-datastore-tutorial/node_modules/@google-cloud/compute/node_modules/grpc/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
node-pre-gyp ERR! stack at emitTwo (events.js:125:13)
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:213:7)
node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:927:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
node-pre-gyp ERR! System Linux 4.13.0-36-generic
node-pre-gyp ERR! command "/usr/bin/node" "/home//projects/google_cloud/google-cloud-datastore-tutorial/node_modules/@google-cloud/compute/node_modules/grpc/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd /home/
/projects/google_cloud/google-cloud-datastore-tutorial/node_modules/@google-cloud/compute/node_modules/grpc
node-pre-gyp ERR! node -v v8.8.1
node-pre-gyp ERR! node-pre-gyp -v v0.6.28
node-pre-gyp ERR! not ok
Failed to execute '/usr/bin/node /usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/home//projects/google_cloud/google-cloud-datastore-tutorial/node_modules/@google-cloud/compute/node_modules/grpc/src/node/extension_binary/grpc_node.node --module_name=grpc_node --module_path=/home//projects/google_cloud/google-cloud-datastore-tutorial/node_modules/@google-cloud/compute/node_modules/grpc/src/node/extension_binary' (1)
npm WARN [email protected] No repository field.

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: node-pre-gyp install --fallback-to-build
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] 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! /home/***/.npm/_logs/2018-02-25T14_31_09_953Z-debug.log

@bloomiboy
Copy link

For now, downgrade (or dual install) node to v6.9.0 to overcome this problem. This looks like fixed in a later version of grpc but I haven't gotten to the correct google-cloud/common version to get this fixed for the latest node version.

@jryd
Copy link
Contributor

jryd commented Nov 5, 2018

@vervaekejonathan this should be solved by my changes from #10, given it is using the latest packages and therefore there shouldn't be any need to compile the packages from scratch for later versions of Node.

@schoukah
Copy link

schoukah commented Sep 28, 2022

I had this issue as well.

Installed and used v 6.9.0 and now I get this error message:

npm ERR! Linux 5.15.0-48-generic
npm ERR! argv "//.nvm/versions/node/v6.9.0/bin/node" "/home//.nvm/versions/node/v6.9.0/bin/npm" "install" "@google-cloud/[email protected]"
npm ERR! node v6.9.0
npm ERR! npm v3.10.8
npm ERR! path /***/google-cloud-datastore-tutorial/node_modules/.staging/@types/bytebuffer-ed47c98b/package.json
npm ERR! code ENOTDIR
npm ERR! errno -20
npm ERR! syscall open

npm ERR! ENOTDIR: not a directory, open '/home/***/google-cloud-datastore-tutorial/node_modules/.staging/@types/bytebuffer-ed47c98b/package.json'
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! https://github.com/npm/npm/issues

npm ERR! Please include the following file with any support request:
npm ERR! /home/***/google-cloud-datastore-tutorial/npm-debug.log`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants