Now to get ws.js on Windows

Skip to first unread message

Ket

unread,
May 29, 2012, 12:24:28 AM5/29/12
to nod...@googlegroups.com
Hello,

I've installed Node.js and WebSocket server on Windows 7 through npm route, and I can't get ws.js with this method.

How can I get this file. I tried the following command but it's not working:

npm install ws.js

I desperately need this file to get the advantage that linux computer has, because I cannot afford another computer and run it with linux to test my program.

Thanks

Ben Noordhuis

unread,
May 29, 2012, 6:05:11 AM5/29/12
to nod...@googlegroups.com
Run Linux in a VM? Anyway, what error message do you get when you try
to install it?

Oliver Leics

unread,
May 29, 2012, 6:18:21 AM5/29/12
to nod...@googlegroups.com
installs fine on a win7starter netbook :-)

try ``npm install ws.js`` several times in a row, sometimes this
helps, especially for huge packages.

and don't forget to post the error log.
> --
> Job Board: http://jobs.nodejs.org/
> Posting guidelines: 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 post to this group, send email to nod...@googlegroups.com
> To unsubscribe from this group, send email to
> nodejs+un...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/nodejs?hl=en?hl=en



--
Oliver Leics @ G+
https://plus.google.com/112912441146721682527

mscdex

unread,
May 29, 2012, 6:38:36 AM5/29/12
to nodejs
On May 29, 6:18 am, Oliver Leics <oliver.le...@gmail.com> wrote:
> installs fine on a win7starter netbook :-)

I just tried it (`npm install ws.js`) on XP and I get: "npm ERR! git
clone git://github.com/yaronn/xmldom.git CreateProcessW: The system
cannot find the file specified" even though git is in the PATH and is
accessible from cmd.exe.

Ket

unread,
Jun 1, 2012, 3:59:00 AM6/1/12
to nod...@googlegroups.com, oliver...@gmail.com
Still trying and cannot get it worked. Can I just download some web-socket-sever suit from github and replace npm server folder in my computer. That's the last resort I can Think of.

Oliver Leics

unread,
Jun 1, 2012, 4:06:01 AM6/1/12
to nod...@googlegroups.com
Please post the errors npm writes to the console.

mscdex

unread,
Jun 1, 2012, 4:57:50 AM6/1/12
to nodejs
`ws.js` package !== `ws` package in npm.

mscdex

unread,
Jun 1, 2012, 5:04:46 AM6/1/12
to nodejs
Additionally, I can confirm the `ws` package (the C++ addon version)
does not compile on Windows: https://gist.github.com/4e73ef4109c96f0c4439

mscdex

unread,
Jun 1, 2012, 5:55:39 AM6/1/12
to nodejs
The ws package now compiles on Windows correctly as of ws 0.4.16.

Ket

unread,
Jun 2, 2012, 10:11:47 AM6/2/12
to nod...@googlegroups.com, oliver...@gmail.com
Hi,
Here's my error message:

C:\Program Files\nodejs>npm install ws.js
npm http GET https://registry.npmjs.org/ws.js
npm http GET https://registry.npmjs.org/formidablenpm http GET https://registry.npmjs.org/request
npm http GET https://registry.npmjs.org/dateformatnpm http GET https://registry.npmjs.org/xml-cryptonpm http GET https://registry.npmjs.org/bufferjs
npm ERR! git clone git://github.com/yaronn/xmldom. cannot find the file specified.
npm ERR! Error: `git "clone" "git://github.com/yart\\AppData\\Local\\Temp\\npm-1338644536842\\133864ailed with 127
npm ERR!     at ChildProcess.<anonymous> (C:\Progrpm\lib\utils\exec.js:49:20)
npm ERR!     at ChildProcess.emit (events.js:70:17
npm ERR!     at maybeExit (child_process.js:360:16
npm ERR!     at Socket.<anonymous> (child_process.
npm ERR!     at Socket.emit (events.js:67:17)
npm ERR!     at Array.1 (net.js:335:10)
npm ERR!     at EventEmitter._tickCallback (node.j
npm ERR! You may report this log at:
npm ERR!     <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR!     <np...@googlegroups.com>
npm ERR!
npm ERR! System Windows_NT 6.1.7600
npm ERR! command "C:\\Program Files\\nodejs\\\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install"
npm ERR! cwd C:\Program Files\nodejs
npm ERR! node -v v0.6.15
npm ERR! npm -v 1.1.16
npm ERR! message `git "clone" "git://github.com/yaet\\AppData\\Local\\Temp\\npm-1338644536842\\13386failed with 127
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     C:\Program Files\nodejs\npm-debug.log
npm not ok

Yaron Naveh

unread,
Jun 3, 2012, 8:23:29 AM6/3/12
to nod...@googlegroups.com, oliver...@gmail.com
Ket

I am the author of ws.js. Try again now with the normal install.
I have changed the reference to xmldom from a git link to an npm package.
There must be some proxy issue behind the firewall to get "git clone" to work on windows (found a few links on that but none really worked for me).

Yaron

Ket

unread,
Jun 3, 2012, 9:16:18 AM6/3/12
to nod...@googlegroups.com, oliver...@gmail.com
Thanks. It works.
Reply all
Reply to author
Forward
0 new messages