Corrupt npm error when building my first Cordova App

707 views Asked by At

This is my first look into using Cordova with Visual Studio, I followed the Apache Cordova installation process and started to go through the first app example. When I run the Ripple - Nexus function I get the following output/errro:

1>------ Build started: Project: WeatherApp, Configuration: Debug Android ------
1>  ------ Ensuring correct global installation of package from source package directory: C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\ApacheCordovaTools\packages\vs-tac
1>  ------ Name from source package.json: vs-tac
1>  ------ Version from source package.json: 1.0.42
1>  ------ Current package installation is corrupted. Will cleanup and do a fresh installation.
1>------ npm install error : error : spawn cmd ENOENT
1>  ------ Installing Cordova tools [email protected] for project from npm. This could take a few minutes...
1>  Each package is licensed to you by its owner. Microsoft is not responsible for, nor does it grant any licenses to, third-party packages. Some packages may include dependencies which are governed by additional licenses. Follow the package source (feed) URL to determine any dependencies.
1>MDAVSCLI : [Error ------ npm install error : [email protected]]
1>MSBUILD : cordova-build error : Build error: ------ npm install error: [email protected]
1>Build error : ------ npm install error : [email protected]
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
========== Deploy: 0 succeeded, 0 failed, 0 skipped ==========

I have uninstalled the Cordova tools and reinstalled them, I uninstalled Android Studio (did not reinstall but reinstalled the Android SDK) and I've tried to reinstall the vs-tac via the command line. Please help as I would very much like to work with these tools.

Thanks, Alex

*Edit: I've added System32 to the path and reinstalled NodeJs and npm but now I get the following error:

------ Package not currently installed globally. 1> ------ Installing globally from source package. This could take a few minutes... 1> Each package is licensed to you by its owner. Microsoft is not responsible for, nor does it grant any licenses to, third-party packages. Some packages may include dependencies which are governed by additional licenses. Follow the package source (feed) URL to determine any dependencies. 1> ENOENT, no such file or directory '' 1>MSBUILD : cordova-build error : module.js:338

I've run npm install -g in the command line, I have node version V5.12.0 and npm version 5.2.0.

Thanks - Alex

0

There are 0 answers