-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
node-gyp rebuild error #1476
Comments
@DenDix your host does not have the make tool installed. You need to install it according to the instructions for that host OS. |
I am running ubuntu 14.04 LTS on Amazon Web Services. I can search for make tools, but if you could be more explicit as to exactly what I need to install that would be helpful. e.g. "npm install ???". Thanks for your help. |
@DenDix I use the following on CentOS...it may give you a hint as to the equivalent in Ubuntu: yum -y install gcc gcc-c++ make |
Thanks for your help. I intalled make with "sudo apt-get install make". Then I ran "npm install" from my keystonejs project directory. It looks like I'm still missing packages to do the build. I got the following error: npm WARN optional dep failed, continuing fsevents@0.3.6
make: Entering directory
make: Entering directory `/var/nodes/stone/mendo/node_modules/keystone/node_modules/mongoose/node_modules/mongodb/node_modules/bson/build' make: Leaving directory `/var/nodes/stone/mendo/node_modules/keystone/node_modules/mongoose/node_modules/mongodb/node_modules/bson/build'
make: Entering directory npm ERR! cld@2.4.0 install: |
This seems to be relevant in the output: |
Did you maybe just perform a yum update and not reboot afterwards? I just had the same problem and did a reboot and tried npm install after it came back up and it worked like a charm. |
"sudo apt-get install g++" did the trick. I can research it, but possibly since I've got someone to ask at the moment, how do I change the port from 3000 to 80, so I can see it on my browser? Regardless, thanks for your help. |
|
I was thinking more along the lines of the following: |
I tried putting "PORT=80" in the .env file, following what I read here: https://github.com/JedWatson/keystone-demo , but got a lot of errors. Maybe in .gitignore, comment out "ignore .env file"? |
Looks like that's a server environment variable, not a keystone .env...maybe? I've always just rerouted... try |
Bit late to the party, but on Ubuntu you should install package build-essential before installing node As a sidenote, you should really use NVM to sidestep permissions spaghetti related to using sudo interchangeably. You should not need to use sudo to install global npm packages. If anybody comes across this in the future, here's a relevant article https://www.digitalocean.com/community/tutorials/how-to-install-node-js-on-an-ubuntu-14-04-server |
I've installed all of the above mentioned packages and am still getting the same error as the OP.. any ideas at all guys? Debug Below: gyp ERR! build error npm ERR! cld@2.4.3 install: npm ERR! Please include the following file with any support request: |
@DBSalvia Ditto! UPDATE: Looks like it was a RAM issue - I bumped my Ubuntu server from 512MB to 2G RAM and this seems to have solved it. Looks like cld needs to be revved: UPDATE: Submitted new issue to author: Distributor ID: Ubuntu I confirmed that node-gyp, make, and build-essentials are installed on my cloud9 instance - just for the sake of testing I blew away my node-modules folder at the root of my project and ran "npm install --verbose". The results are as follows: ...
|
@chuckwilliams37 also seemed to be a ram issue for me... |
@DBSalvia @chuckwilliams37 might want to add a note to https://github.com/keystonejs/keystone/wiki/Deployment-Checklist if this is true |
I am attempting to deploy on an Amazon EC2 t2.small instance with 2GiB of Memory and continue to receive this error. I see this has been closed as a memory issue on the CLD side. Has anyone successfully resolved this issue on an EC2 instance? |
@sachss I was receiving that error until I completely deleted my project node_modules, then installed 'make' and 'node-gyp' and then re-ran 'npm install'. |
Thank you for your responses. The latest Limax build no longer depends on cld, which has removed this issue. |
Had this same problem, node version v4.4.0 , npm 3.8.2, Linux Mint 17.3 Cinnamon. Then installed g++ And worked like a charm! :) |
I received an error when attempting run "npm install" the following is my terminal output:
npm WARN optional dep failed, continuing fsevents@0.3.6
/
gyp ERR! build error
gyp ERR! stack Error: not found: make
gyp ERR! stack at F (/usr/lib/node_modules/npm/node_modules/which/which.js:43:28)
gyp ERR! stack at E (/usr/lib/node_modules/npm/node_modules/which/which.js:46:29)
gyp ERR! stack at /usr/lib/node_modules/npm/node_modules/which/which.js:57:16
gyp ERR! stack at Object.oncomplete (evalmachine.:108:15)
gyp ERR! System Linux 3.13.0-48-generic
gyp ERR! command "node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /var/nodes/mykeystone/mendo/node_modules/keystone/node_modules/keystone-utils/node_modules/limax/node_modules/cld
gyp ERR! node -v v0.10.38
gyp ERR! node-gyp -v v1.0.1
gyp ERR! not ok
npm ERR! cld@2.4.0 install:
node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the cld@2.4.0 install script.
npm ERR! This is most likely a problem with the cld package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get their info via:
npm ERR! npm owner ls cld
npm ERR! There is likely additional logging output above.
npm ERR! System Linux 3.13.0-48-generic
npm ERR! command "/usr/bin/node" "/usr/bin/npm" "install"
npm ERR! cwd /var/nodes/mykeystone/mendo
npm ERR! node -v v0.10.38
npm ERR! npm -v 1.4.28
npm ERR! code ELIFECYCLE
npm ERR! not ok code 0
Any ideas?
The text was updated successfully, but these errors were encountered: