Phonegap npm installation error

I want to install Phonegap but i run into the same error everytime.

I added the PATH's:

ANDROID_HOME - C:\Program Files (x86)\android-sdk-windows

ANT_HOME - C:\Program Files (x86)\apache-ant-1.9.4

JAVA_HOME - C:\Program Files\Java\jdk1.8.0_20

PATH - %ANT_HOME%\bin;%JAVA_HOME%\bin;C:\Program Files\nodejs;C:\Users\user1\AppData\Roaming\npm

i tried npm cache clean already. I have Android SDK, Eclipse, Java SDK and NodeJS installed.

i posted a log below:

C:\Users\user1>ant -version
Apache Ant(TM) version 1.9.4 compiled on April 29 2014

C:\Users\user1>java -version
java version "1.8.0_20"
Java(TM) SE Runtime Environment (build 1.8.0_20-b26)
Java HotSpot(TM) 64-Bit Server VM (build 25.20-b23, mixed mode)

C:\Users\user1>npm install phonegap
-


> ws@0.4.31 install C:\Users\user1\node_modules\phonegap\node_modules\connec
t-phonegap\node_modules\socket.io\node_modules\engine.io\node_modules\ws
> (node-gyp rebuild 2> builderror.log) || (exit 0)

-


> ws@0.4.31 install C:\Users\user1\node_modules\phonegap\node_modules\connec
t-phonegap\node_modules\socket.io\node_modules\socket.io-client\node_modules\eng
ine.io-client\node_modules\ws
> (node-gyp rebuild 2> builderror.log) || (exit 0)

npm ERR! ws@0.4.31 install: `(node-gyp rebuild 2> builderror.log) || (exit 0)`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the ws@0.4.31 install script.
npm ERR! This is most likely a problem with the ws package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     (node-gyp rebuild 2> builderror.log) || (exit 0)
npm ERR! You can get their info via:
npm ERR!     npm owner ls ws
npm ERR! There is likely additional logging output above.

npm ERR! System Windows_NT 6.2.9200
npm ERR! command "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nod
ejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "phonegap"
npm ERR! cwd C:\Users\user1
npm ERR! node -v v0.10.32
npm ERR! npm -v 1.4.28
npm ERR! syscall spawn
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! not ok code 0