Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

npm install: node-waf not found. What to do?

Tags:

node.js

Using node -v v0.10.29, npm -v 1.4.14 (http://ppa.launchpad.net/chris-lea/node.js/ubuntu)

when doing a "npm install" of a project, "[email protected] preinstall" always shouts "sh: 1: node-waf: not found"

I've seen some other questions about the same thing, but I still don't know what I have to do to make "npm install" work.

Thanks.

like image 753
tokosh Avatar asked Jul 18 '14 17:07

tokosh


1 Answers

The node-waf package has been replaced by node-gyp, this is why you get the not found error. The package is not available anymore: https://www.npmjs.org/search?q=node-waf

The zlib package you want to install has not been updated for years. Node.js has built-in support for Zlib, see the manual for more details: Zlib.

like image 170
Gergo Erdosi Avatar answered Sep 19 '22 20:09

Gergo Erdosi