Reputation: 2137
I am having a problem with VS2015 Cordova
and NPM
. I am trying to download the latest version of Angular2 using package.json
{
"name": "BlankCordovaApp5-jspm",
"version": "1.0.0",
"dependencies": {
"systemjs": "0.19.4",
"angular2": "2.0.0-alpha.42"
},
"devDependencies": {
}
}
However, when I do I get the following error:
It would seem like the npmjs
would be causing the problem, but the issue is an outdated VS2015 Node
and NPM
. If I download the latest version of Node
and then move the $(path) up or add the node folder to external tools, Angular 2 can now be downloaded.
Unfortunately, I now get the following errors:
What are the steps to updating Visual Studio Cordova's Node and NPM and not get errors?
Upvotes: 1
Views: 1367
Reputation: 559
Probably this can help you to update npm:
http://jameschambers.com/2015/09/upgrading-npm-in-visual-studio-2015/
and https://github.com/felixrieseberg/npm-windows-upgrade
and if you update Node.js to 4.x, which makes sense, use the x86 variant and go through this: http://buli.waw.pl/update-node-js-integrated-with-visual-studio-2015/
Upvotes: 4