On Sep 3, 2014, at 2:41 PM, Darshan Chaudhary wrote: > > I have Ubuntu 14.04 and am facing problems using Node.js packages. > > npm -v shows 1.3.10 > nodejs -v shows v0.10.25 > > i installed learnyounode using sudo npm install leanyounode > after it completed the installation, when i type in learnyounode, i get no > response. There is no error, nothing.
"no response, no error, nothing" usually means that a program successfully ran. I find that unusual in this case, since I would not expect there to be a program installed on your system called "learnyounode". Usually your $PATH environment variable would be set to run programs from system locations, and invoking "npm install" does not install anything in system locations, unless you use the "-g" flag, which you didn't do; the learnyounode documentation says you should use the "-g" flag to install it globally; then running just "learnyounode" should work. When you don't use the "-g" flag, "npm install" installs files in the node_modules folder in the same directory (or an ancestor directory, if such a directory already exists there). The ".bin" subfolder of the node_modules folder typically contains any programs you're meant to run. You could check if a "learnyounode" program has been installed there for you, and if so you could run that instead of installing the module globally. -- Job board: http://jobs.nodejs.org/ New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md Old group rules: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines --- You received this message because you are subscribed to the Google Groups "nodejs" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/nodejs/AD12D2B2-ECAE-469C-A977-E2AB67CB79F7%40ryandesign.com. For more options, visit https://groups.google.com/d/optout.
