A
A
Artem00712017-02-08 14:37:43
Angular
Artem0071, 2017-02-08 14:37:43

How to update Angular 2?

How to update Angular correctly?
I try like this: npm update --save
But in response this:
bda8f8eaab384c84926e2770a8318430.png
Here are the versions:
dbda8ff7e6eb400c96cf839697b7cc10.png
And something else happened and on npm start it started to display the following:
0fef0269ecf94225bb90b9375dd619cd.png
But npm run lite is working fine so far
What is going on with me?)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Evgeny Erofeev, 2017-02-08
@zhekaus

We need to fix the version in package.json . Easier, put the cover ^, like this:

…
  "dependencies": {
    "@angular/common": "^2.3.1",
…

More details on how it works here - https://docs.npmjs.com/misc/semver It's good, but radical, to update `bower.json` and `package.json`.
npm install -g npm-check-updates
ncu -u -a --packageFile package.json

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question