I installed node.js and npm recently and was trying to install the learnyounode npm package using sudo npm install -g learnyounode, but after installing I am not able to access it from command line. When I run learnyounode I am getting
/usr/bin/env: node: No such file or directory
I checked /usr/local/lib/node_modules to find learnyounode folder in it, not only learnyounode, I am not able to access any npm packages from command line. I am using npm 1.3.10 and node.js 0.10.25.