MMM-KeyBindings icon indicating copy to clipboard operation
MMM-KeyBindings copied to clipboard

Error trying to install - node-pre-gyp install --fallback-to-build

Open jcmarinn opened this issue 6 years ago • 4 comments

I’m trying to install but get an error with node-pre-gyp install --fallback-to-build

Macbook Pro Core 2 Duo - Late 2016 Ubuntu 18.04 node v8.10.0 npm v3.5.2

I can not go to node 10.x as I’m running in old Macbook Pro which although has 64bit processor runs in 32bit mode

first warnings I see: node-pre-gyp WARN Using request for node-pre-gyp https download node-pre-gyp WARN Pre-built binaries not installable for [email protected] and [email protected] (node-v57 ABI, glibc) (falling back to source compile with node-gyp) node-pre-gyp WARN Hit error Invalid URI “https:///node-v57-linux-ia32.tar.gz”

Any help appreciated

jcmarinn avatar Apr 26 '19 03:04 jcmarinn

Do you still have this issue with the current version?

KristjanESPERANTO avatar Jan 09 '22 10:01 KristjanESPERANTO

I'm having the same issue on Ubuntu buster

Node 16.15.0 Npm 8.8.0

First errors:

npm ERR! code 1 npm ERR! path /home/mm/MagicMirror/modules/MMM-KeyBindings/node_modules/udev npm ERR! command failed npm ERR! command sh -c node-pre-gyp install --fallback-to-build npm ERR! make: Entering directory '/home/mm/MagicMirror/modules/MMM-KeyBindings/node_modules/udev/build' npm ERR! CC(target) Release/obj.target/nothing/node_modules/node-addon-api/nothing.o npm ERR! AR(target) Release/obj.target/node_modules/node-addon-api/nothing.a npm ERR! COPY Release/nothing.a npm ERR! CXX(target) Release/obj.target/udev/main.o npm ERR! make: Leaving directory '/home/mm/MagicMirror/modules/MMM-KeyBindings/node_modules/udev/build' npm ERR! 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/mm/MagicMirror/modules/MMM-KeyBindings/node_modules/udev/build/node-v93-linux-arm64/udev.node --module_name=udev --module_path=/home/mm/MagicMirror/modules/MMM-KeyBindings/node_modules/udev/build/node-v93-linux-arm64 --napi_version=8 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v93' (1) npm ERR! node-pre-gyp info it worked if it ends with ok npm ERR! node-pre-gyp info using [email protected] npm ERR! node-pre-gyp info using [email protected] | linux | arm64 npm ERR! node-pre-gyp info check checked for "/home/mm/MagicMirror/modules/MMM-KeyBindings/node_modules/udev/build/node-v93-linux-arm64/udev.node" (not found) npm ERR! node-pre-gyp http GET https:///node-v93-linux-arm64.tar.gz npm ERR! node-pre-gyp ERR! install request to https://node-v93-linux-arm64.tar.gz/ failed, reason: getaddrinfo ENOTFOUND node-v93-linux-arm64.tar.gz npm ERR! node-pre-gyp WARN Pre-built binaries not installable for [email protected] and [email protected] (node-v93 ABI, glibc) (falling back to source compile with node-gyp) npm ERR! node-pre-gyp WARN Hit error request to https://node-v93-linux-arm64.tar.gz/ failed, reason: getaddrinfo ENOTFOUND node-v93-linux-arm64.tar.gz

Alcedema avatar May 02 '22 20:05 Alcedema

Nevermind, manually ran the preinstall.sh script before npm install and now works.

Alcedema avatar May 02 '22 21:05 Alcedema

Nevermind, manually ran the preinstall.sh script before npm install and now works.

Yes this works, I dont get this error anymore.

TheAshwanik avatar May 04 '23 11:05 TheAshwanik

With release of 1.3.5 this shouldn't not be an issue anymore 🙂

KristjanESPERANTO avatar Feb 22 '25 17:02 KristjanESPERANTO