Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

Cannot download Node packages using npm and shell

Cannot download Node packages using npm and shell

Problem

I installed Node 0.10.12 on Windows 7 using msi installer

Before this, I installed python 2.7 and gmake - all of which installed succesfully.

Now, I'm typing

"$ sudo npm install -g sax" to download the sax package and nothing is happening. All I get is "...". Just 3 dots.

Does this means that downloading is in progress or is something wrong? I guess something is wrong, since I see those dots for 30 minutes and still nothing. I just dont get it.

Also, in the book I read about node, says "/usr/local/lib/node_modules" for the modules folders, but I found the default modules here "C:\Program Files (x86)\nodejs\node_modules\npm\node_modules". Is that wrong? Does it mean something went wrong on the installation?

Problem courtesy of: slevin

Solution

Three dots mean you are running the Command inside the node interpreter (Node.js command prompt).

Run npm install -g sax from the Windows command line terminal not node.js terminal. Type cmd after opening Windows menu and open the program, then enter this command.

Solution courtesy of: user568109

Discussion

View additional discussion.



This post first appeared on Node.js Recipes, please read the originial post: here

Share the post

Cannot download Node packages using npm and shell

×

Subscribe to Node.js Recipes

Get updates delivered right to your inbox!

Thank you for your subscription

×