Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot download Node packages using npm and shell

Tags:

node.js

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?

like image 250
slevin Avatar asked Dec 07 '22 06:12

slevin


1 Answers

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.

like image 176
user568109 Avatar answered Jan 01 '23 14:01

user568109