ddopson / underscore-cli

Command-line utility-belt for hacking JSON and Javascript.
Other
1.72k stars 83 forks source link

Error: Cannot find module #28

Open Dariusz-Choinski opened 10 years ago

Dariusz-Choinski commented 10 years ago

nvm 0.10.24, npm 1.3.21/1.4.3 Linux & Mac I installed underscore-cli with: npm install -g underscore-cli Error is reported in terminal, after execution of commands.

[darek@localhost testbox]$ echo '[1, 2, 3, 4]' | underscore map 'value+1' [2, 3, 4, 5] [darek@localhost testbox]$ module.js:340 throw err; ^ Error: Cannot find module '/home/darek/.nvm/v0.10.24/bin/underscore-map' at Function.Module._resolveFilename (module.js:338:15) at Function.Module._load (module.js:280:25) at Function.Module.runMain (module.js:497:10) at startup (node.js:119:16) at node.js:902:3

rbeesley commented 10 years ago

Use this as a workaround until tyom's change is committed:

$ npm install -g commander@1.0.5 underscore-cli