clux/modul8 — Issue #11: npm question
Author: panosru
Created: 2012-01-22 23:18:37+00:00
State: open

Hi, if you run `npm install underscore` before `npm install backbone` then backbone won't install underscore dependency locally since underscore exists but as a result when you try to do `require('npm::backbone');` having `.npm('./node_modules');` set you will get an error like the following:

DEBUG: Error: modul8 failed to require npm module underscore
at /home/rnd/domains/design.rnd/public_html/app-ui/node_modules/modul8/lib/utils.js:8:9
at Resolver.locate (/home/rnd/domains/design.rnd/public_html/app-ui/node_modules/modul8/lib/resolver.js:304:7)
at /home/rnd/domains/design.rnd/public_html/app-ui/node_modules/modul8/lib/resolver.js:352:21
at /home/rnd/domains/design.rnd/public_html/app-ui/node_modules/modul8/lib/analyzer.js:51:12
at Array.map (native)
at Analyzer.dependencies (/home/rnd/domains/design.rnd/public_html/app-ui/node_modules/modul8/lib/analyzer.js:50:28)
at Analyzer. (/home/rnd/domains/design.rnd/public_html/app-ui/node_modules/modul8/lib/analyzer.js:95:27)
at Analyzer. (/home/rnd/domains/design.rnd/public_html/app-ui/node_modules/modul8/lib/analyzer.js:116:15)
at Analyzer.buildTree (/home/rnd/domains/design.rnd/public_html/app-ui/node_modules/modul8/lib/analyzer.js:120:9)
at new Analyzer (/home/rnd/domains/design.rnd/public_html/app-ui/node_modules/modul8/lib/analyzer.js:26:8)