phonegap / phonegap-cli

PhoneGap and PhoneGap/Build command-line interface
Apache License 2.0
491 stars 156 forks source link

Error install phonegap #525

Closed jesteban19 closed 9 years ago

jesteban19 commented 9 years ago

Hi I have the following error when running npm install -g phonegap, I have installed visual studio 2013

NEO@NEO-PRINCIPAL /C/Users/NEO/Desktop/test
$ npm install -g phonegap
npm WARN deprecated deflate-crc32-stream@0.1.2: module has been merged into crc
2-stream
\

> ws@0.4.31 install C:\Users\NEO\AppData\Roaming\npm\node_modules\phonegap\node
modules\connect-phonegap\node_modules\socket.io\node_modules\engine.io\node_mod
les\ws
> (node-gyp rebuild 2> builderror.log) || (exit 0)

C:\Users\NEO\AppData\Roaming\npm\node_modules\phonegap\node_modules\connect-pho
egap\node_modules\socket.io\node_modules\engine.io\node_modules\ws>node "c:\Pro
ram Files\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp
bin\node-gyp.js" rebuild
Los proyectos de esta solución se van a compilar de uno en uno. Para habilitar
a compilación en paralelo, agregue el modificador "/m".
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.Cpp.Platform.t
argets(64,5): error MSB8020: The build tools for Visual Studio 2010 (Platform T
oolset = 'v100') cannot be found. To build using the v100 build tools, please i
nstall Visual Studio 2010 build tools.  Alternatively, you may upgrade to the c
urrent Visual Studio tools by selecting the Project menu or right-click the sol
ution, and then selecting "Upgrade Solution...". [C:\Users\NEO\AppData\Roaming\
npm\node_modules\phonegap\node_modules\connect-phonegap\node_modules\socket.io\
node_modules\engine.io\node_modules\ws\build\bufferutil.vcxproj]
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.Cpp.Platform.t
argets(64,5): error MSB8020: The build tools for Visual Studio 2010 (Platform T
oolset = 'v100') cannot be found. To build using the v100 build tools, please i
nstall Visual Studio 2010 build tools.  Alternatively, you may upgrade to the c
urrent Visual Studio tools by selecting the Project menu or right-click the sol
ution, and then selecting "Upgrade Solution...". [C:\Users\NEO\AppData\Roaming\
npm\node_modules\phonegap\node_modules\connect-phonegap\node_modules\socket.io\
node_modules\engine.io\node_modules\ws\build\validation.vcxproj]
/

> ws@0.4.31 install C:\Users\NEO\AppData\Roaming\npm\node_modules\phonegap\node
modules\connect-phonegap\node_modules\socket.io\node_modules\socket.io-client\n
de_modules\engine.io-client\node_modules\ws
> (node-gyp rebuild 2> builderror.log) || (exit 0)

C:\Users\NEO\AppData\Roaming\npm\node_modules\phonegap\node_modules\connect-pho
egap\node_modules\socket.io\node_modules\socket.io-client\node_modules\engine.i
-client\node_modules\ws>node "c:\Program Files\nodejs\node_modules\npm\bin\node
gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild
Los proyectos de esta solución se van a compilar de uno en uno. Para habilitar
a compilación en paralelo, agregue el modificador "/m".
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.Cpp.Platform.t
argets(64,5): error MSB8020: The build tools for Visual Studio 2010 (Platform T
oolset = 'v100') cannot be found. To build using the v100 build tools, please i
nstall Visual Studio 2010 build tools.  Alternatively, you may upgrade to the c
urrent Visual Studio tools by selecting the Project menu or right-click the sol
ution, and then selecting "Upgrade Solution...". [C:\Users\NEO\AppData\Roaming\
npm\node_modules\phonegap\node_modules\connect-phonegap\node_modules\socket.io\
node_modules\socket.io-client\node_modules\engine.io-client\node_modules\ws\bui
ld\bufferutil.vcxproj]
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.Cpp.Platform.t
argets(64,5): error MSB8020: The build tools for Visual Studio 2010 (Platform T
oolset = 'v100') cannot be found. To build using the v100 build tools, please i
nstall Visual Studio 2010 build tools.  Alternatively, you may upgrade to the c
urrent Visual Studio tools by selecting the Project menu or right-click the sol
ution, and then selecting "Upgrade Solution...". [C:\Users\NEO\AppData\Roaming\
npm\node_modules\phonegap\node_modules\connect-phonegap\node_modules\socket.io\
node_modules\socket.io-client\node_modules\engine.io-client\node_modules\ws\bui
ld\validation.vcxproj]
C:\Users\NEO\AppData\Roaming\npm\phonegap -> C:\Users\NEO\AppData\Roaming\npm\n
de_modules\phonegap\bin\phonegap.js
phonegap@4.2.0-0.25.0 C:\Users\NEO\AppData\Roaming\npm\node_modules\phonegap
├── pluralize@0.0.4
├── colors@0.6.0-1
├── semver@1.1.0
├── minimist@0.1.0
├── qrcode-terminal@0.9.4
├── shelljs@0.1.4
├── phonegap-build@0.9.1 (qrcode-terminal@0.8.0, shelljs@0.0.9, optimist@0.3.7,
phonegap-build-api@0.3.3)
├── prompt@0.2.11 (revalidator@0.1.8, pkginfo@0.3.0, read@1.0.5, winston@0.6.2,
utile@0.2.1)
├── connect-phonegap@0.15.0 (home-dir@0.1.2, connect-inject@0.3.2, ip@0.3.1, nc
@0.6.0, findit@2.0.0, shelljs@0.2.6, request-progress@0.3.1, http-proxy@1.8.1,
ode-static@0.7.0, useragent@2.0.8, request@2.33.0, archiver@0.10.1, gaze@0.4.3,
tar@0.1.19, localtunnel@1.3.0, connect@2.12.0, socket.io@1.0.4)
└── cordova@4.2.0 (underscore@1.7.0, q@1.0.1, nopt@3.0.1, cordova-lib@4.2.0)
aamir2590 commented 9 years ago

image

aamir2590 commented 9 years ago

can anybody help me on this. i'm getting the solution for this problem. what i have to do to fix this problem

aamir2590 commented 9 years ago

i'm not getting*

Ssenyondo commented 9 years ago

Try switching to root on your mac and re run the command su root > sudo npm install -g phonegap then give it time

mwbrooks commented 9 years ago

Hi @aamir2590,

The PhoneGap CLI uses websockets and must compile some code during the npm install. The error that you are receiving is hidden inside the npm install log:

The build tools for Visual Studio 2010 (Platform Toolset = 'v100') cannot be found. To build using the v100 build tools, please install Visual Studio 2010 build tools. Alternatively, you may upgrade to the current Visual Studio tools by selecting the Project menu or right-click the solution, and then selecting "Upgrade Solution...".

You will need to install Visual Studio in order to build the web sockets.

Sorry about the inconvenience. I'm seriously thinking of ripping them out because it's a problem for many Windows users.