Npm upgrade to @angular 2 not available

I want to upgrade from angular 2 Beta 15 to angular 2 RC1.

I am using Visual Studio 2015.

In my npm package.json inside Visual Studio, I do:

"dependencies": { "@angular/core": "Unavailable", } 

but i'm not available.

Then I made some updates:

 I updated my nodejs to v6.1.0. I updated my npm to v3.8.9. 

In Visual Studio 2015, it is not yet available.

How can I try to make it work?

UPDATE

After doing what @David Pine suggested, I got this error:

 ====Executing command 'npm install'==== npm WARN package.json ASP.NET@0.0.0 No description npm WARN package.json ASP.NET@0.0.0 No repository field. npm WARN package.json ASP.NET@0.0.0 No README data npm http GET https://registry.npmjs.org/angular/core npm http 404 https://registry.npmjs.org/angular/core npm ERR! 404 Not Found npm ERR! 404 npm ERR! 404 'angular/core' is not in the npm registry. npm ERR! 404 You should bug the author to publish it npm ERR! 404 It was specified as a dependency of 'ASP.NET' npm ERR! 404 npm ERR! 404 Note that you can also install from a npm ERR! 404 tarball, folder, or http url, or git url. npm ERR! System Windows_NT 6.2.9200 npm ERR! command "C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\Common7\\IDE\\Extensions\\Microsoft\\Web Tools\\External\\\\node\\node" "C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\Common7\\IDE\\Extensions\\Microsoft\\Web Tools\\External\\npm\\node_modules\\npm\\bin\\npm-cli.js" "install" npm ERR! cwd C:\TGB.2016\TGB.Web npm ERR! node -v v0.10.31 npm ERR! npm -v 1.4.9 npm ERR! code E404 ====npm command completed with exit code 1==== 

UPDATE 2

I also added the correct path to nodejs in my Visual Studio variants:

http://ryanhayes.net/synchronize-node-js-install-version-with-visual-studio-2015/

+7
angular npm visual-studio-2015
source share
2 answers

Make sure Node.js is at the top of the external paths of the web tools in Visual Studio , in detail.

I found that Visual Studio 2015 can be unreliable in terms of integration with npm . Instead of relying on VS to update it for you, open package.json and manually enter the version you need.

Instead:

 "dependencies": { "@angular/core": "Unavailable", } 

Enter:

 "dependencies": { "@angular/core": "2.0.0-rc.1", } 
+4
source share

Open a command prompt (cmd) in the project folder and type "npm install" or mark this thread

The solution in this thread helped me.

project.json still does not show the @ angular module, but as soon as you save project.json, it will install all the dependencies on npm.

Follow this post:

0
source share

All Articles