Throwing error while install the appium using npm

I tried to install the appium through npm install , but it has thrown some error . I saw the error it says that it need .net framework 2.0 and visual studio 5 , but already .NetFramework 4.5 and Visual basic 8 is installed in my system . Then why i am getting this error . Can you please look onto this issue .

Error

Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.

C:\Users\malam>npm cache clean

C:\Users\malam>npm install -g appium
npm WARN optional dep failed, continuing [email protected]
|

[email protected] install C:\Users\malam\AppData\Roaming\npm\node_modules\appiu
m\node_modules\ws\node_modules\bufferutil
node-gyp rebuild

/
C:\Users\malam\AppData\Roaming\npm\node_modules\appium\node_modules\ws\node_modu
les\bufferutil>node “C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\
…..\node_modules\node-gyp\bin\node-gyp.js” rebuild
Building the projects in this solution one at a time. To enable parallel build,
please add the “/m” switch.
MSBUILD : error MSB3428: Could not load the Visual C++ component “VCBuild.exe”.
To fix this, 1) install the .NET Framework 2.0 SDK, 2) install Microsoft Visua
l Studio 2005 or 3) add the location of the component to the system path if it
is installed elsewhere. [C:\Users\malam\AppData\Roaming\npm\node_modules\appiu
m\node_modules\ws\node_modules\bufferutil\build\binding.sln]
gyp ERR! build error
gyp ERR! stack Error: C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe failed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (C:\Program Files\nodejs\node_modules
npm\node_modules\node-gyp\lib\build.js:267:23)
gyp ERR! stack at ChildProcess.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:810:
12)
gyp ERR! System Windows_NT 6.1.7601
gyp ERR! command “node” “C:\Program Files\nodejs\node_modules\npm\node_modu
les\node-gyp\bin\node-gyp.js” “rebuild”
gyp ERR! cwd C:\Users\malam\AppData\Roaming\npm\node_modules\appium\node_modules
\ws\node_modules\bufferutil
gyp ERR! node -v v0.10.31
gyp ERR! node-gyp -v v1.0.1
gyp ERR! not ok
npm WARN engine [email protected]: wanted: {“node”:“0.8.x”} (current: {“node”:"0.10.31
",“npm”:“1.4.23”})
npm WARN engine [email protected]: wanted: {“node”:“0.8.x”} (current: {“node”:“0.1
0.31”,“npm”:“1.4.23”})
npm WARN engine [email protected]: wanted: {“node”:“0.8.x”} (current: {“node”:“0.10.31”
,“npm”:“1.4.23”})
npm WARN engine [email protected]: wanted: {“node”:“0.8.x”} (current: {“node”:“0.10.31”
,“npm”:“1.4.23”})
npm WARN engine [email protected]: wanted: {“node”:“0.8.x”} (current: {“node”:“0.10.31”
,“npm”:“1.4.23”})

[email protected] install C:\Users\malam\AppData\Roaming\npm\node_modules\a
ppium\node_modules\ws\node_modules\utf-8-validate
node-gyp rebuild

C:\Users\malam\AppData\Roaming\npm\node_modules\appium\node_modules\ws\node_modu
les\utf-8-validate>node “C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-b
in\…..\node_modules\node-gyp\bin\node-gyp.js” rebuild
Building the projects in this solution one at a time. To enable parallel build,
please add the “/m” switch.
MSBUILD : error MSB3428: Could not load the Visual C++ component “VCBuild.exe”.
To fix this, 1) install the .NET Framework 2.0 SDK, 2) install Microsoft Visua
l Studio 2005 or 3) add the location of the component to the system path if it
is installed elsewhere. [C:\Users\malam\AppData\Roaming\npm\node_modules\appiu
m\node_modules\ws\node_modules\utf-8-validate\build\binding.sln]
gyp ERR! build error
gyp ERR! stack Error: C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe failed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (C:\Program Files\nodejs\node_modules
npm\node_modules\node-gyp\lib\build.js:267:23)
gyp ERR! stack at ChildProcess.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:810:
12)
gyp ERR! System Windows_NT 6.1.7601
gyp ERR! command “node” “C:\Program Files\nodejs\node_modules\npm\node_modu
les\node-gyp\bin\node-gyp.js” “rebuild”
gyp ERR! cwd C:\Users\malam\AppData\Roaming\npm\node_modules\appium\node_modules
\ws\node_modules\utf-8-validate
gyp ERR! node -v v0.10.31
gyp ERR! node-gyp -v v1.0.1
gyp ERR! not ok
npm WARN optional dep failed, continuing [email protected]

[email protected] install C:\Users\malam\AppData\Roaming\npm\node_modules\appium\node_m
odules\socket.io\node_modules\engine.io\node_modules\ws
(node-gyp rebuild 2> builderror.log) || (exit 0)

C:\Users\malam\AppData\Roaming\npm\node_modules\appium\node_modules\socket.io\no
de_modules\engine.io\node_modules\ws>node “C:\Program Files\nodejs\node_modules
npm\bin\node-gyp-bin\…..\node_modules\node-gyp\bin\node-gyp.js” rebuild
npm WARN optional dep failed, continuing [email protected]

[email protected] install C:\Users\malam\AppData\Roaming\npm\node_modules\appium\node_
modules\socket.io\node_modules\socket.io-client\node_modules\engine.io-client\no
de_modules\ws
(node-gyp rebuild 2> builderror.log) || (exit 0)

C:\Users\malam\AppData\Roaming\npm\node_modules\appium\node_modules\socket.io\no
de_modules\socket.io-client\node_modules\engine.io-client\node_modules\ws>node "
C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\…..\node_modules\no
de-gyp\bin\node-gyp.js" rebuild

C:\Users\malam>npm cache clean

Hmm. Could you update to Node.js version 0.12? Seems like you’re on version 0.10. Hopefully that would resolve the issue.