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

npm failed to install time with make not found error #31

Closed
peterbarretto opened this issue Feb 8, 2013 · 7 comments
Closed

npm failed to install time with make not found error #31

peterbarretto opened this issue Feb 8, 2013 · 7 comments

Comments

@peterbarretto
Copy link

When i try to install time on my node server i get the below error:

> time@0.8.4 install /var/www/track/node_modules/time
> node-gyp rebuild

gyp ERR! build error
gyp ERR! stack Error: not found: make
gyp ERR! stack     at F (/usr/lib/nodejs/npm/node_modules/which/which.js:43:28)
gyp ERR! stack     at E (/usr/lib/nodejs/npm/node_modules/which/which.js:46:29)
gyp ERR! stack     at /usr/lib/nodejs/npm/node_modules/which/which.js:57:16
gyp ERR! stack     at Object.oncomplete (fs.js:297:15)
gyp ERR! System Linux 3.2.0-31-virtual
gyp ERR! command "node" "/usr/lib/nodejs/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /var/www/track/node_modules/time
gyp ERR! node -v v0.8.15
gyp ERR! node-gyp -v v0.7.1
gyp ERR! not ok
npm ERR! time@0.8.4 install: `node-gyp rebuild`
npm ERR! `sh "-c" "node-gyp rebuild"` failed with 1
npm ERR!
npm ERR! Failed at the time@0.8.4 install script.
npm ERR! This is most likely a problem with the time 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 time
npm ERR! There is likely additional logging output above.

npm ERR! System Linux 3.2.0-31-virtual
npm ERR! command "nodejs" "/usr/bin/npm" "install" "time"
npm ERR! cwd /var/www/track
npm ERR! node -v v0.8.15
npm ERR! npm -v 1.1.66
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     /var/www/track/npm-debug.log
npm ERR! not ok code 0
@TooTallNate
Copy link
Owner

You need to install "make"

On Friday, February 8, 2013, peterbarretto wrote:

When i try to install time on my node server i get the below error:

time@0.8.4 install /var/www/track/node_modules/time
node-gyp rebuild

gyp ERR! build error
gyp ERR! stack Error: not found: make
gyp ERR! stack at F (/usr/lib/nodejs/npm/node_modules/which/which.js:43:28)
gyp ERR! stack at E (/usr/lib/nodejs/npm/node_modules/which/which.js:46:29)
gyp ERR! stack at /usr/lib/nodejs/npm/node_modules/which/which.js:57:16
gyp ERR! stack at Object.oncomplete (fs.js:297:15)
gyp ERR! System Linux 3.2.0-31-virtual
gyp ERR! command "node"
"/usr/lib/nodejs/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /var/www/track/node_modules/time
gyp ERR! node -v v0.8.15
gyp ERR! node-gyp -v v0.7.1
gyp ERR! not ok
npm ERR! time@0.8.4 install: node-gyp rebuild
npm ERR! sh "-c" "node-gyp rebuild" failed with 1
npm ERR!
npm ERR! Failed at the time@0.8.4 install script.
npm ERR! This is most likely a problem with the time 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 time
npm ERR! There is likely additional logging output above.

npm ERR! System Linux 3.2.0-31-virtual
npm ERR! command "nodejs" "/usr/bin/npm" "install" "time"
npm ERR! cwd /var/www/track
npm ERR! node -v v0.8.15
npm ERR! npm -v 1.1.66
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /var/www/track/npm-debug.log
npm ERR! not ok code 0


Reply to this email directly or view it on GitHubhttps://github.com//issues/31.

@peterbarretto
Copy link
Author

how do i install make on my server?

@TooTallNate
Copy link
Owner

Well I have no idea what distro your using so idk. Use google. Closing.

@ghost
Copy link

ghost commented Mar 21, 2013

I just saw this exact error, and remedied it by doing unset MAKE before running node-gyp. It seems that the presence of a MAKE environment variable causes something to go wrong. FWIW, I saw this on a relatively up-to-date Linux 2.6 machine with the full gcc/make/autotools stack installed, while installing node-fs-ext from git on node v0.10.0.

It looks like there may be a minor issue here, but I'm not 100% sure. Happy to help reproduce if needed.

@duykhoa
Copy link

duykhoa commented Jun 3, 2015

try to install this package
sudo apt-get install build-essential

may be install g++ also

@sniranjan
Copy link

This worked for me on Ubuntu 14.04.4 (Digital Ocean)
sudo apt-get update
sudo apt-get install build-essential

@abhineet-mishra
Copy link

This worked for me on Centos 7
yum install -y make gcc*

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

5 participants