underscore-cli icon indicating copy to clipboard operation
underscore-cli copied to clipboard

Error: Cannot find module

Open Dariusz-Choinski opened this issue 10 years ago • 1 comments

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

Dariusz-Choinski avatar Apr 13 '14 18:04 Dariusz-Choinski

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

$ npm install -g [email protected] underscore-cli

rbeesley avatar May 15 '14 02:05 rbeesley