HummusJS icon indicating copy to clipboard operation
HummusJS copied to clipboard

Install Fails at node-pre-gyp install --fallback-to-build

Open cfloydDPI opened this issue 6 years ago • 8 comments

I have tried to install hummus a few times, and always get this error message.

Failed to execute 'node-gyp.cmd configure --fallback-to-build --module=C:\Users\cfloyd\AppData\Roaming\npm\node_modules\hummus\binding\hummus.node --module_name=hummus --module_path=C:\Users\cfloyd\AppData\Roaming\npm\node_modules\hummus\binding' (1) npm ERR! Windows_NT 10.0.15063 npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "install" "-g" "hummus" npm ERR! node v6.11.3 npm ERR! npm v3.10.10 npm ERR! code ELIFECYCLE

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 'node-pre-gyp install --fallback-to-build'. npm ERR! Make sure you have the latest version of node.js and npm installed. npm ERR! If you do, this is most likely a problem with the hummus package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! node-pre-gyp install --fallback-to-build npm ERR! You can get information on how to open an issue for this project with: npm ERR! npm bugs hummus npm ERR! Or if that isn't available, you can get their info via: npm ERR! npm owner ls hummus npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request: npm ERR! C:\Users\cfloyd\learnyounode\TestOrderGenerator\npm-debug.log

cfloydDPI avatar Sep 22 '17 13:09 cfloydDPI

npm-debug.txt

cfloydDPI avatar Sep 22 '17 13:09 cfloydDPI

prbbly cause you don't have build tools. See #198

galkahana avatar Sep 23 '17 20:09 galkahana

I actually have seen some windows devices that will never be able to install even in the same windows Version. I have to build and copy it over. Maybe it's a good idea to have some prebuilt version for some major windows system?

chunyenHuang avatar Oct 08 '17 04:10 chunyenHuang

@galkahana, we have already created multiple prebuilt versions for windows 10 (or server 2016). if we send to you, could you upload them, please? if so, can we provide the zip file instead with the same contents as the other tar files?

eduardomourar avatar Mar 20 '18 11:03 eduardomourar

I am also getting the same error in CentOS. How can I fix?. In the local machine, I am using ubuntu 14.04 its working fine. I have tried in windows with installing all these. In windows also not working. Please help me to fix the issue

npm i -g --production windows-build-tools
npm install --global node-gyp
npm install --global node-pre-gyp

aathirag avatar May 23 '18 05:05 aathirag

I am experiencing this issue on an older repo of mine (Mar 2018). Before troubleshooting I couldn't run the app locally on my Mac. The windows build tool that @galkahana mentions is not helped to me.

$ node -v
v5.0.0

$ npm -v
3.3.6

I tried...

npm install --global node-gyp
npm install --global node-pre-gyp

The error was still thrown, but now the app is running when I type npm start This is not important enough for me to debug further.

jackiekazil avatar Nov 12 '18 12:11 jackiekazil

I am also facing this issue with hummus. if I try with the node (v4.9.1) it works fine but whenever I try to update node version then it's not able to install again.

npm ERR! path /home/vagrant/$$$$$/app/node_modules/hummus/node_modules/rc/node_modules/minimist/package.json.4167218105 npm ERR! code ENOENT npm ERR! errno -2 npm ERR! syscall open npm ERR! enoent ENOENT: no such file or directory, open '/home/vagrant/$$$$$/app/node_modules/hummus/node_modules/rc/node_modules/minimist/package.json.4167218105' npm ERR! enoent This is related to npm not being able to find a file. npm ERR! enoent

kirteshsharma avatar Dec 20 '18 10:12 kirteshsharma

Fixed this issue on a Ubuntu Digital Ocean server by downgrading Node version to 10.16.0. Was using 15.x.x. I used nvm and it worked great.

pgqueme avatar Apr 06 '21 12:04 pgqueme