underscore-cli
underscore-cli copied to clipboard
Errors in Ubuntu 14.04 64bit
I have installed Underscore on a Ubuntu 14.04 64 bit machine and i can't use it becaue of the following errors.
When i'm piping, regardless of the argument for underscore, i get the following:
art3@anon:~$ cat test | underscore print --color Error while parsing STDIN in mode 'lax': Unexpected identifier
When i'm using it standalone i get the following error after the result: art3@anon:~$ underscore reduce --data '[1, 2, 3, 4]' 'total+value' 10 art3@anon:~$ module.js:340 throw err; ^ Error: Cannot find module '/usr/bin/underscore-reduce' 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:906:3
Recommended info to display:
art3@anon:~$ uname -a Linux anon 3.13.0-24-generic #47-Ubuntu SMP Fri May 2 23:30:00 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux art3@anon:~$ node -v v0.10.28 art3@anon:~$ npm -v 1.4.9 art3@anon:~$ npm ls /home/art3 └── (empty)
NPM LS is showing empty but npm was installed and working properly. Uninstalling it and reinstalling didn't help. Neither with nodejs.
Any ideas?
npm ls
is showing an empty output because your cwd is /home/art3
, not the directory where underscore-cli
is installed. That is normal.
This error is fixed by #29, which hasn't been merged.