Installing dust.js for node.js (Error: require.paths is removed...) -
i've googled , read threads come on here in forum, still can't work.
i'm trying make dust.js work node.js
test.js:
var dust = require('dust');
running it:
$ node test error: require.paths removed. use node_modules folders, or node_path environment variable instead. @ function.object.defineproperty.get (module.js:388:11) @ object.<anonymous> (/usr/local/lib/node_modules/dust/lib/server.js:6:8) @ module._compile (module.js:456:26) @ object.module._extensions..js (module.js:474:10) @ module.load (module.js:356:32) @ function.module._load (module.js:312:12) @ module.require (module.js:364:17) @ require (module.js:380:17) @ object.<anonymous> (/usr/local/lib/node_modules/dust/lib/dust.js:511:7) @ module._compile (module.js:456:26) $ node -v v0.10.5
i installed dust it' supposed installed:
$ npm install -g dust npm http https://registry.npmjs.org/dust npm http 200 https://registry.npmjs.org/dust npm http https://registry.npmjs.org/dust/-/dust-0.3.0.tgz npm http 200 https://registry.npmjs.org/dust/-/dust-0.3.0.tgz dust@0.3.0 /usr/local/lib/node_modules/dust
i've tried setting node_path:
export node_path="/usr/local/lib/node_modules"
or
export node_path="/usr/local/lib/node"
still nothing works..
the problem dust not compatible node version. in 0.6 version, node removed require.paths method , dust repo not being maintained anymore, works node 0.4.
try linkedin version wich has lot of new features , compatible new versions of node.
Comments
Post a Comment