I just download the VS Apache Cordova Tools Update 5 and I'm running into problems with Node and NPM. I am using the default blank cordova project for testing.
Versions
If I run a gulp check for Node and NPM within my VS Project I get: Node version = v0.10.31
and NPM version = 1.4.9
. However, I also have installed Node version = v5.4.1
and NPM version = 3.3.6
Problem
When I publish using Cordova CLI 5.3.3 I get the following error When I change the Cordova CLI to 5.4.1 I get the following error:
If I change the Tools > Options > Projects and Solutions > External Web Tools and add the path C:\Program Files (x86)\nodejs
I get the following warning and an npm install failed
error.
npm WARN deprecated [email protected]: this package has been reintegrated into npm and is now out of date with respect to npm
Other
If I select use global installed version
I get 5.2.0.
Any help is greatly appreciated!
Download location and update info for VS Cordova Tools 5 http://microsoft.github.io/vstacoblog/2016/01/13/annoucing-update-5.html
---------------------------Update 1/15/2015 4:50PMEST--------------------------
Here's the build log when publishing blank cordova project with node = 5.4.1
using node-v5.4.1-x86.msi
and NPM = 3.5.3
installed using package.json.
1>------ Build started: Project: BlankCordovaApp4, Configuration: Debug Android ------
1> Your environment has been set up for using Node.js 5.4.1 (ia32) and npm.
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.28
1> ------ Package already installed globally at correct version.
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> npm WARN deprecated [email protected]: this package has been reintegrated into npm and is now out of date with respect to npm
1> npm ERR! Windows_NT 6.3.9600
1> npm ERR! argv "C:\\Program Files (x86)\\nodejs\\node.exe" "C:\\Users\\DBiele\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "install" "[email protected]" "--loglevel" "warn"
1> npm ERR! node v5.4.1
1> npm ERR! npm v3.3.6
1>
1> npm ERR! Cannot read property 'localeCompare' of undefined
1> npm ERR!
1>MDAVSCLI : npm ERR! If you need help, you may report this error at:
1> npm ERR! <https://github.com/npm/npm/issues>
1>
1> npm ERR! Please include the following file with any support request:
1> npm ERR! C:\Users\DBiele\AppData\Roaming\npm\node_modules\vs-tac\node_modules\cordova\5.4.1\npm-debug.log
1> [Error: ------ npm install failed. Exit code: 1]
1> C:\Users\DBiele\AppData\Roaming\npm\node_modules\vs-tac\node_modules\q\q.js:126
1> throw e;
1> ^
1>
1>MDAVSCLI : error : ------ npm install failed. Exit code: 1
1> at ChildProcess.<anonymous> (C:\Users\DBiele\AppData\Roaming\npm\node_modules\vs-tac\lib\util.js:655:29)
1> at emitTwo (events.js:87:13)
1> at ChildProcess.emit (events.js:172:7)
1> at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
Here's another build log after removing NPM 3.5.3
, clearing cordova cache
and npm cache clean
1>------ Build started: Project: BlankCordovaApp4, Configuration: Debug Android ------
1> Your environment has been set up for using Node.js 5.4.1 (ia32) and npm.
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.28
1> ------ 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> npm WARN deprecated [email protected]: this package has been reintegrated into npm and is now out of date with respect to npm
1> npm WARN engine [email protected]: wanted: {"node":">=0.6","npm":"1"} (current: {"node":"5.4.1","npm":"3.3.6"})
1> C:\Users\DBiele\AppData\Roaming\npm\vs-tac-cli -> C:\Users\DBiele\AppData\Roaming\npm\node_modules\vs-tac\vs-tac-cli.cmd
1> > [email protected] install C:\Users\DBiele\AppData\Roaming\npm\node_modules\vs-tac\node_modules\edge
1> > node tools/install.js
1> ***************************************
1> [Error: The edge module has not been pre-compiled for node.js version v5.4.1. You must build a custom version of edge.node. Please refer to https://github.com/tjanczuk/edge for building instructions.]
1> ***************************************
1> Success: platform check for edge.js: node.js ia32 v5.4.1
1> C:\Users\DBiele\AppData\Roaming\npm
1> └─┬ [email protected]
1> ├── [email protected]
1> ├─┬ [email protected]
1> │ ├── [email protected]
1> │ └── [email protected]
1> ├─┬ [email protected]
1> │ └── [email protected]
1> ├─┬ [email protected]
1> │ ├── [email protected]
1> │ └── [email protected]
1> ├── [email protected]
1> ├── [email protected]
1> ├─┬ [email protected]
1> │ ├── [email protected]
1> │ └── [email protected]
1> ├─┬ [email protected]
1> │ ├─┬ [email protected]
1> │ │ ├── [email protected]
1> │ │ ├─┬ [email protected]
1> │ │ │ ├─┬ [email protected]
1> │ │ │ │ ├─┬ [email protected]
1> │ │ │ │ │ └── [email protected]
1> │ │ │ │ ├─┬ [email protected]
1> │ │ │ │ │ ├─┬ [email protected]
1> │ │ │ │ │ │ ├── [email protected]
1> │ │ │ │ │ │ ├── [email protected]
1> │ │ │ │ │ │ └─┬ [email protected]
1> │ │ │ │ │ │ └── [email protected]
1> │ │ │ │ │ └─┬ [email protected]
1> │ │ │ │ │ ├── [email protected]
1> │ │ │ │ │ └── [email protected]
1> │ │ │ │ ├── [email protected]
1> │ │ │ │ ├─┬ [email protected]
1> │ │ │ │ │ └── [email protected]
1> │ │ │ │ ├─┬ [email protected]
1> │ │ │ │ │ ├── [email protected]
1> │ │ │ │ │ └── [email protected]
1> │ │ │ │ ├── [email protected]
1> │ │ │ │ ├── [email protected]
1> │ │ │ │ ├─┬ [email protected]
1> │ │ │ │ │ ├─┬ [email protected]
1> │ │ │ │ │ │ ├── [email protected]
1> │ │ │ │ │ │ ├── [email protected]
1> │ │ │ │ │ │ └── [email protected]
1> │ │ │ │ │ └── [email protected]
1> │ │ │ │ ├── [email protected]
1> │ │ │ │ ├── [email protected]
1> │ │ │ │ ├── [email protected]
1> │ │ │ │ ├── [email protected]
1> │ │ │ │ ├── [email protected]
1> │ │ │ │ ├─┬ [email protected]
1> │ │ │ │ │ ├─┬ [email protected]
1> │ │ │ │ │ │ ├── [email protected]
1> │ │ │ │ │ │ └── [email protected]
1> │ │ │ │ │ └── [email protected]
1> │ │ │ │ ├─┬ [email protected]
1> │ │ │ │ │ ├── [email protected]
1> │ │ │ │ │ ├─┬ [email protected]
1> │ │ │ │ │ │ ├── [email protected]
1> │ │ │ │ │ │ ├── [email protected]
1> │ │ │ │ │ │ └── [email protected]
1> │ │ │ │ │ └── [email protected]
1> │ │ │ │ ├── [email protected]
1> │ │ │ │ ├── [email protected]
1> │ │ │ │ ├── [email protected]
1> │ │ │ │ ├─┬ [email protected]
1> │ │ │ │ │ └─┬ [email protected]
1> │ │ │ │ │ ├── [email protected]
1> │ │ │ │ │ └── [email protected]
1> │ │ │ │ ├─┬ [email protected]
1> │ │ │ │ │ └── [email protected]
1> │ │ │ │ ├── [email protected]
1> │ │ │ │ ├── [email protected]
1> │ │ │ │ ├─┬ [email protected]
1> │ │ │ │ │ ├─┬ [email protected]
1> │ │ │ │ │ │ └─┬ [email protected]
1> │ │ │ │ │ │ └── [email protected]
1> │ │ │ │ │ └── [email protected]
1> │ │ │ │ ├─┬ [email protected]
1> │ │ │ │ │ └── [email protected]
1> │ │ │ │ ├─┬ [email protected]
1> │ │ │ │ │ ├─┬ [email protected]
1> │ │ │ │ │ │ ├─┬ [email protected]
1> │ │ │ │ │ │ │ ├── [email protected]
1> │ │ │ │ │ │ │ ├── [email protected]
1> │ │ │ │ │ │ │ ├── [email protected]
1> │ │ │ │ │ │ │ └─┬ [email protected]
1> │ │ │ │ │ │ │ └── [email protected]
1> │ │ │ │ │ │ └── [email protected]
1> │ │ │ │ │ └── [email protected]
1> │ │ │ │ ├── [email protected]
1> │ │ │ │ ├── [email protected]
1> │ │ │ │ ├── [email protected]
1> │ │ │ │ ├── [email protected]
1> │ │ │ │ ├── [email protected]
1> │ │ │ │ ├── [email protected]
1> │ │ │ │ ├── [email protected]
1> │ │ │ │ ├── [email protected]
1> │ │ │ │ ├─┬ [email protected]
1> │ │ │ │ │ └── [email protected]
1> │ │ │ │ ├── [email protected]
1> │ │ │ │ ├── [email protected]
1> │ │ │ │ ├─┬ [email protected]
1> │ │ │ │ │ └── [email protected]
1> │ │ │ │ ├─┬ [email protected]
1> │ │ │ │ │ └── [email protected]
1> │ │ │ │ ├─┬ [email protected]
1> │ │ │ │ │ ├─┬ [email protected]
1> │ │ │ │ │ │ ├── [email protected]
1> │ │ │ │ │ │ ├── [email protected]
1> │ │ │ │ │ │ └── [email protected]
1> │ │ │ │ │ └─┬ [email protected]
1> │ │ │ │ │ └── [email protected]
1> │ │ │ │ ├─┬ [email protected]
1> │ │ │ │ │ └── [email protected]
1> │ │ │ │ ├── [email protected]
1> │ │ │ │ ├─┬ [email protected]
1> │ │ │ │ │ ├─┬ [email protected]
1> │ │ │ │ │ │ ├── [email protected]
1> │ │ │ │ │ │ └── [email protected]
1> │ │ │ │ │ └─┬ [email protected]
1> │ │ │ │ │ └─┬ [email protected]
1> │ │ │ │ │ ├─┬ [email protected]
1> │ │ │ │ │ │ └── [email protected]
1> │ │ │ │ │ └─┬ [email protected]
1> │ │ │ │ │ └── [email protected]
1> │ │ │ │ ├── [email protected]
1> │ │ │ │ ├── [email protected]
1> │ │ │ │ └─┬ [email protected]
1> │ │ │ │ └── [email protected]
1> │ │ │ ├── [email protected]
1> │ │ │ └─┬ [email protected]
1> │ │ │ ├── [email protected]
1> │ │ │ ├─┬ [email protected]
1> │ │ │ │ └── [email protected]
1> │ │ │ ├─┬ [email protected]
1> │ │ │ │ └── [email protected]
1> │ │ │ └── [email protected]
1> │ │ ├─┬ [email protected]
1> │ │ │ └── [email protected]
1> │ │ ├─┬ [email protected]
1> │ │ │ └── [email protected]
1> │ │ ├─┬ [email protected]
1> │ │ │ ├── [email protected]
1> │ │ │ └─┬ [email protected]
1> │ │ │ ├── [email protected]
1> │ │ │ └── [email protected]
1> │ │ ├── [email protected]
1> │ │ ├─┬ [email protected]
1> │ │ │ ├── [email protected]
1> │ │ │ ├─┬ [email protected]
1> │ │ │ │ └── [email protected]
1> │ │ │ ├── [email protected]
1> │ │ │ ├── [email protected]
1> │ │ │ └─┬ [email protected]
1> │ │ │ ├── [email protected]
1> │ │ │ ├── [email protected]
1> │ │ │ ├─┬ [email protected]
1> │ │ │ │ └─┬ [email protected]
1> │ │ │ │ └── [email protected]
1> │ │ │ ├─┬ [email protected]
1> │ │ │ │ ├─┬ [email protected]
1> │ │ │ │ │ └── [email protected]
1> │ │ │ │ ├── [email protected]
1> │ │ │ │ └─┬ [email protected]
1> │ │ │ │ └── [email protected]
1> │ │ │ ├─┬ [email protected]
1> │ │ │ │ ├── [email protected]
1> │ │ │ │ ├── [email protected]
1> │ │ │ │ └── [email protected]
1> │ │ │ ├── [email protected]
1> │ │ │ ├── [email protected]
1> │ │ │ └── [email protected]
1> │ │ ├─┬ [email protected]
1> │ │ │ ├─┬ [email protected]
1> │ │ │ │ └── [email protected]
1> │ │ │ ├── [email protected]
1> │ │ │ ├── [email protected]
1> │ │ │ ├── [email protected]
1> │ │ │ ├─┬ [email protected]
1> │ │ │ │ └── [email protected]
1> │ │ │ └── [email protected]
1> │ │ ├── [email protected]
1> │ │ ├─┬ [email protected]
1> │ │ │ ├── [email protected]
1> │ │ │ └── [email protected]
1> │ │ ├── [email protected]
1> │ │ ├── [email protected]
1> │ │ ├─┬ [email protected]
1> │ │ │ ├── [email protected]
1> │ │ │ ├── [email protected]
1> │ │ │ └─┬ [email protected]
1> │ │ │ └── [email protected]
1> │ │ ├─┬ [email protected]
1> │ │ │ ├── [email protected]
1> │ │ │ ├── [email protected]
1> │ │ │ ├── [email protected]
1> │ │ │ ├─┬ [email protected]
1> │ │ │ │ ├── [email protected]
1> │ │ │ │ └─┬ [email protected]
1> │ │ │ │ └── [email protected]
1> │ │ │ ├─┬ [email protected]
1> │ │ │ │ ├─┬ [email protected]
1> │ │ │ │ │ └── [email protected]
1> │ │ │ │ ├── [email protected]
1> │ │ │ │ ├── [email protected]
1> │ │ │ │ └─┬ [email protected]
1> │ │ │ │ └── [email protected]
1> │ │ │ ├─┬ [email protected]
1> │ │ │ │ ├── [email protected]
1> │ │ │ │ ├── [email protected]
1> │ │ │ │ └── [email protected]
1> │ │ │ ├── [email protected]
1> │ │ │ ├── [email protected]
1> │ │ │ ├── [email protected]
1> │ │ │ ├── [email protected]
1> │ │ │ └── [email protected]
1> │ │ ├── [email protected]
1> │ │ ├── [email protected]
1> │ │ ├─┬ [email protected]
1> │ │ │ ├── [email protected]
1> │ │ │ ├─┬ [email protected]
1> │ │ │ │ ├── [email protected]
1> │ │ │ │ ├── [email protected]
1> │ │ │ │ └── [email protected]
1> │ │ │ └── [email protected]
1> │ │ ├── [email protected]
1> │ │ └─┬ [email protected]
1> │ │ ├── [email protected]
1> │ │ └── [email protected]
1> │ ├─┬ [email protected]
1> │ │ └── [email protected]
1> │ ├─┬ [email protected]
1> │ │ ├─┬ [email protected]
1> │ │ │ └── [email protected]
1> │ │ ├── [email protected]
1> │ │ ├─┬ [email protected]
1> │ │ │ └── [email protected]
1> │ │ ├── [email protected]
1> │ │ ├── [email protected]
1> │ │ ├─┬ [email protected]
1> │ │ │ └── [email protected]
1> │ │ ├─┬ [email protected]
1> │ │ │ └── [email protected]
1> │ │ ├─┬ [email protected]
1> │ │ │ ├── [email protected]
1> │ │ │ ├── [email protected]
1> │ │ │ ├─┬ [email protected]
1> │ │ │ │ └─┬ [email protected]
1> │ │ │ │ └── [email protected]
1> │ │ │ ├─┬ [email protected]
1> │ │ │ │ ├─┬ [email protected]
1> │ │ │ │ │ └── [email protected]
1> │ │ │ │ ├── [email protected]
1> │ │ │ │ └─┬ [email protected]
1> │ │ │ │ └── [email protected]
1> │ │ │ ├─┬ [email protected]
1> │ │ │ │ ├── [email protected]
1> │ │ │ │ ├── [email protected]
1> │ │ │ │ └── [email protected]
1> │ │ │ ├── [email protected]
1> │ │ │ ├── [email protected]
1> │ │ │ └── [email protected]
1> │ │ ├─┬ [email protected]
1> │ │ │ └── [email protected]
1> │ │ └─┬ [email protected]
1> │ │ └── [email protected]
1> │ ├── [email protected]
1> │ ├─┬ [email protected]
1> │ │ ├── [email protected]
1> │ │ ├── [email protected]
1> │ │ └── [email protected]
1> │ └── [email protected]
1> ├── [email protected]
1> ├─┬ [email protected]
1> │ ├── [email protected]
1> │ ├── [email protected]
1> │ ├─┬ [email protected]
1> │ │ ├── [email protected]
1> │ │ └─┬ [email protected]
1> │ │ └── [email protected]
1> │ ├─┬ [email protected]
1> │ │ ├── [email protected]
1> │ │ ├── [email protected]
1> │ │ ├── [email protected]
1> │ │ └── [email protected]
1> │ ├─┬ [email protected]
1> │ │ ├── [email protected]
1> │ │ ├── [email protected]
1> │ │ └── [email protected]
1> │ ├── [email protected]
1> │ ├── [email protected]
1> │ ├── [email protected]
1> │ ├── [email protected]
1> │ ├── [email protected]
1> │ ├── [email protected]
1> │ └── [email protected]
1> ├── [email protected]
1> ├─┬ [email protected]
1> │ ├── [email protected]
1> │ ├── [email protected]
1> │ ├── [email protected]
1> │ ├─┬ [email protected]
1> │ │ ├── [email protected]
1> │ │ ├── [email protected]
1> │ │ ├─┬ [email protected]
1> │ │ │ ├── [email protected]
1> │ │ │ ├── [email protected]
1> │ │ │ ├── [email protected]
1> │ │ │ └── [email protected]
1> │ │ ├── [email protected]
1> │ │ ├── [email protected]
1> │ │ ├─┬ [email protected]
1> │ │ │ └── [email protected]
1> │ │ ├── [email protected]
1> │ │ ├── [email protected]
1> │ │ ├── [email protected]
1> │ │ ├── [email protected]
1> │ │ └─┬ [email protected]
1> │ │ └── [email protected]
1> │ ├── [email protected]
1> │ ├── [email protected]
1> │ └─┬ [email protected]
1> │ └─┬ [email protected]
1> │ └─┬ [email protected]
1> │ └── [email protected]
1> ├── [email protected]
1> └─┬ [email protected]
1> └── [email protected]
1> ------ npm install of [email protected] from C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 14.0\COMMON7\IDE\EXTENSIONS\APACHECORDOVATOOLS\packages\vs-tac completed.
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> npm WARN deprecated [email protected]: this package has been reintegrated into npm and is now out of date with respect to npm
1> npm ERR! Windows_NT 6.3.9600
1> npm ERR! argv "C:\\Program Files (x86)\\nodejs\\node.exe" "C:\\Users\\DBiele\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "install" "[email protected]" "--loglevel" "warn"
1> npm ERR! node v5.4.1
1> npm ERR! npm v3.3.6
1>
1> npm ERR! Cannot read property 'localeCompare' of undefined
1> npm ERR!
1>MDAVSCLI : npm ERR! If you need help, you may report this error at:
1> npm ERR! <https://github.com/npm/npm/issues>
1>
1> npm ERR! Please include the following file with any support request:
1> npm ERR! C:\Users\DBiele\AppData\Roaming\npm\node_modules\vs-tac\node_modules\cordova\5.4.1\npm-debug.log
1> [Error: ------ npm install failed. Exit code: 1]
1> C:\Users\DBiele\AppData\Roaming\npm\node_modules\vs-tac\node_modules\q\q.js:126
1> throw e;
1> ^
1>
1>MDAVSCLI : error : ------ npm install failed. Exit code: 1
1> at ChildProcess.<anonymous> (C:\Users\DBiele\AppData\Roaming\npm\node_modules\vs-tac\lib\util.js:655:29)
1> at emitTwo (events.js:87:13)
1> at ChildProcess.emit (events.js:172:7)
1> at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
========== Deploy: 0 succeeded, 0 failed, 0 skipped ==========
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
========== Deploy: 0 succeeded, 0 failed, 0 skipped ==========
When I use powershell or cmd to install cordova npm install -g cordova
I get the following error
C:\Users\DBiele>npm install -g cordova
npm WARN deprecated [email protected]: this package has been reintegrated into npm a
nd is now out of date with respect to npm
npm WARN install:isarray ENOENT: no such file or directory, rename 'C:\Users\DBi
ele\AppData\Roaming\npm\node_modules\cordova\node_modules\buffer\node_modules\is
array' -> 'C:\Users\DBiele\AppData\Roaming\npm\node_modules\cordova\node_modules
\buffer\node_modules\isarray'
npm WARN install:negotiator ENOENT: no such file or directory, rename 'C:\Users\
DBiele\AppData\Roaming\npm\node_modules\cordova\node_modules\express\node_module
s\negotiator' -> 'C:\Users\DBiele\AppData\Roaming\npm\node_modules\cordova\node_
modules\express\node_modules\negotiator'
npm WARN install:vary ENOENT: no such file or directory, rename 'C:\Users\DBiele
\AppData\Roaming\npm\node_modules\cordova\node_modules\express\node_modules\vary
' -> 'C:\Users\DBiele\AppData\Roaming\npm\node_modules\cordova\node_modules\expr
ess\node_modules\vary'
npm WARN install:object-assign ENOENT: no such file or directory, rename 'C:\Use
rs\DBiele\AppData\Roaming\npm\node_modules\cordova\node_modules\got\node_modules
\object-assign' -> 'C:\Users\DBiele\AppData\Roaming\npm\node_modules\cordova\nod
e_modules\got\node_modules\object-assign'
npm WARN install:convert-source-map ENOENT: no such file or directory, rename 'C
:\Users\DBiele\AppData\Roaming\npm\node_modules\cordova\node_modules\insert-modu
le-globals\node_modules\convert-source-map' -> 'C:\Users\DBiele\AppData\Roaming\
npm\node_modules\cordova\node_modules\insert-module-globals\node_modules\convert
-source-map'
npm WARN install:graceful-fs ENOENT: no such file or directory, rename 'C:\Users
\DBiele\AppData\Roaming\npm\node_modules\cordova\node_modules\write-file-atomic\
node_modules\graceful-fs' -> 'C:\Users\DBiele\AppData\Roaming\npm\node_modules\c
ordova\node_modules\read-package-json\node_modules\graceful-fs'
npm WARN install:deep-extend ENOENT: no such file or directory, rename 'C:\Users
\DBiele\AppData\Roaming\npm\node_modules\cordova\node_modules\registry-url\node_
modules\deep-extend' -> 'C:\Users\DBiele\AppData\Roaming\npm\node_modules\cordov
a\node_modules\registry-url\node_modules\deep-extend'
npm WARN install:strip-json-comments ENOENT: no such file or directory, rename '
C:\Users\DBiele\AppData\Roaming\npm\node_modules\cordova\node_modules\registry-u
rl\node_modules\strip-json-comments' -> 'C:\Users\DBiele\AppData\Roaming\npm\nod
e_modules\cordova\node_modules\registry-url\node_modules\strip-json-comments'
npm WARN install:mime-types ENOENT: no such file or directory, rename 'C:\Users\
DBiele\AppData\Roaming\npm\node_modules\cordova\node_modules\request\node_module
s\mime-types' -> 'C:\Users\DBiele\AppData\Roaming\npm\node_modules\cordova\node_
modules\request\node_modules\mime-types'
npm WARN install:qs ENOENT: no such file or directory, rename 'C:\Users\DBiele\A
ppData\Roaming\npm\node_modules\cordova\node_modules\request\node_modules\qs' ->
'C:\Users\DBiele\AppData\Roaming\npm\node_modules\cordova\node_modules\request\
node_modules\qs'
[email protected] node_modules\cordova\node_modules\buffer\node_modules\isarray -> n
ode_modules\cordova\node_modules\buffer\node_modules\isarray
[email protected] node_modules\cordova\node_modules\express\node_modules\negotiat
or -> node_modules\cordova\node_modules\express\node_modules\negotiator
[email protected] node_modules\cordova\node_modules\express\node_modules\accepts ->
node_modules\cordova\node_modules\express\node_modules\accepts
[email protected] node_modules\cordova\node_modules\express\node_modules\vary -> node_m
odules\cordova\node_modules\express\node_modules\vary
[email protected] node_modules\cordova\node_modules\got\node_modules\object-as
sign -> node_modules\cordova\node_modules\got\node_modules\object-assign
[email protected] node_modules\cordova\node_modules\insert-module-globals
\node_modules\convert-source-map -> node_modules\cordova\node_modules\insert-mod
ule-globals\node_modules\convert-source-map
[email protected] node_modules\cordova\node_modules\write-file-atomic\node_modul
es\graceful-fs -> node_modules\cordova\node_modules\read-package-json\node_modul
es\graceful-fs
[email protected] node_modules\cordova\node_modules\registry-url\node_modules\de
ep-extend -> node_modules\cordova\node_modules\registry-url\node_modules\deep-ex
tend
[email protected] node_modules\cordova\node_modules\registry-url\node_mo
dules\strip-json-comments -> node_modules\cordova\node_modules\registry-url\node
_modules\strip-json-comments
[email protected] node_modules\cordova\node_modules\request\node_modules\mime-typ
es -> node_modules\cordova\node_modules\request\node_modules\mime-types
[email protected] node_modules\cordova\node_modules\request\node_modules\qs -> node_modul
es\cordova\node_modules\request\node_modules\qs
[email protected] node_modules\cordova\node_modules\cordova-lib\node_module
s\request\node_modules\bl\node_modules\readable-stream -> node_modules\cordova\n
ode_modules\browser-pack\node_modules\readable-stream
[email protected] node_modules\cordova\node_modules\cordova-lib\node_modules\request\node
_modules\bl -> node_modules\cordova\node_modules\bl
[email protected] node_modules\cordova\node_modules\cordova-lib\node_modules\reques
t -> node_modules\cordova\node_modules\request
[email protected] node_modules\cordova\node_modules\cordova-lib\node_modules\npmconf
-> node_modules\cordova\node_modules\npmconf
[email protected] node_modules\cordova\node_modules\cordova-lib\node_modules\glob -> no
de_modules\cordova\node_modules\glob
[email protected] node_modules\cordova\node_modules\cordova-lib\node_modules\tar -> node
_modules\cordova\node_modules\tar
- C:\Users\DBiele\AppData\Roaming\npm\node_modules\cordova\node_modules\write-fi
le-atomic node_modules\cordova\node_modules\write-file-atomic
C:\Users\DBiele\AppData\Roaming\npm
└── (empty)
npm ERR! code 1
-------------------------------Update 2 1/15/2016------------------------
It now appears to be working! I used Michael Braude's comment to npm -g install npm
and it works.
However, before the fix I did the following:
add and remove programs
After using npm -g install npm
I updated node
to 5.4.1 - 64 bit
, I also checked to make sure NPM 3.5.4 worked and used npm -g install [email protected]
and it worked.
In addition, I changed the sandboxed (I think?) version of Node and NPM by adding C:\Program Files (x86)\nodejs
to Tools > Options > Projects and Solutions > External Web Tools
I am now able to run my gulp task using Task Runner Explorer
without getting errors. Crossing fingers that it continues to work!
The problem is that the version of npm that is bundled with the "latest stable" version of node does not properly install some of our npm packages. To fix this, open a command prompt and run:
npm -g install npm
To update npm to the latest version. This should fix the problem.
Edit 2/5/2016 - We have release Update 6 which fixes this problem. See our blog for more info: http://microsoft.github.io/vstacoblog/2016/02/04/announcing-update-6.html
(Disclosure: I work on the tools for Apache Cordova in Visual Studio)
Okay I had to do a combination of things to get this working.
First of all vs-tac uses edge v4 which is not compatible with node v5 so you will need to edit the vs-tac package.json file so it refers to v5 rather than v4 (it seems to work for me but your mileage may vary)
Next as Michael Braude mentioned, you will also need this;
npm -g install npm
Finally you should be able to reinstall vs-tac with this;
npm install -g "C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\ApacheCordovaTools\Packages\vs-tac"
If the result of this is not an error then double check that the file vstac_installing.tmp
has been removed from your global node_modules folder (c:\users\myuser\AppData\Roaming\npm\node_modules) - I had to manually remove it on my machine.
After all that my hello world project finally runs in the emulator!
Good luck...
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With