substack/node-jadeify — Issue #9: npm install failure / errors - no less in node_modules
Author: NHQ
Created: 2012-02-28 19:20:36+00:00
State: open

I think I worked around the error like so.

git clone https://github.com/substack/node-jadeify.git
cd node-jadeify
npm install .
// error -- see below
cd node_modules
npm install less
cd ..
npm install .

I will report back if this works or not.

The full error output follows:

node.js:201
throw e; // process.nextTick error, or 'error' event on first tick
^
Error: Cannot find module "less" from directory "/Users/elenagragasin/webdev/omegawd.new/lib/node_modules/jadeify/node_modules/jade/lib"
at Function. (/Users/elenagragasin/webdev/omegawd.new/lib/node_modules/jadeify/node_modules/browserify/lib/wrap.js:314:19)
at Function.require (/Users/elenagragasin/webdev/omegawd.new/lib/node_modules/jadeify/node_modules/browserify/index.js:120:28)
at /Users/elenagragasin/webdev/omegawd.new/lib/node_modules/jadeify/node_modules/browserify/lib/wrap.js:377:14
at Array.forEach (native)
at Function. (/Users/elenagragasin/webdev/omegawd.new/lib/node_modules/jadeify/node_modules/browserify/lib/wrap.js:376:27)
at Function.require (/Users/elenagragasin/webdev/omegawd.new/lib/node_modules/jadeify/node_modules/browserify/index.js:120:28)
at /Users/elenagragasin/webdev/omegawd.new/lib/node_modules/jadeify/node_modules/browserify/lib/wrap.js:377:14
at Array.forEach (native)
at Function. (/Users/elenagragasin/webdev/omegawd.new/lib/node_modules/jadeify/node_modules/browserify/lib/wrap.js:376:27)
at Function.require (/Users/elenagragasin/webdev/omegawd.new/lib/node_modules/jadeify/node_modules/browserify/index.js:120:28)
npm ERR! error installing jadeify@0.3.2 Error: jadeify@0.3.2 install: `node scripts/generate.js`
npm ERR! error installing jadeify@0.3.2 `sh "-c" "node scripts/generate.js"` failed with 1
npm ERR! error installing jadeify@0.3.2 at ChildProcess. (/usr/local/lib/node_modules/npm/lib/utils/exec.js:49:20)
npm ERR! error installing jadeify@0.3.2 at ChildProcess.emit (events.js:70:17)
npm ERR! error installing jadeify@0.3.2 at maybeExit (child_process.js:359:16)
npm ERR! error installing jadeify@0.3.2 at Process.onexit (child_process.js:395:5)
npm ERR! jadeify@0.3.2 install: `node scripts/generate.js`
npm ERR! `sh "-c" "node scripts/generate.js"` failed with 1
npm ERR!
npm ERR! Failed at the jadeify@0.3.2 install script.
npm ERR! This is most likely a problem with the jadeify package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node scripts/generate.js
npm ERR! You can get their info via:
npm ERR! npm owner ls jadeify
npm ERR! There is likely additional logging output above.
npm ERR!
npm ERR! System Darwin 10.7.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "jadeify"
npm ERR! cwd /Users/elenagragasin/webdev/omegawd.new/lib
npm ERR! node -v v0.6.6
npm ERR! npm -v 1.0.106
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /Users/elenagragasin/webdev/omegawd.new/lib/npm-debug.log
npm not ok