angular-cli icon indicating copy to clipboard operation
angular-cli copied to clipboard

Fails to use latest version of angular

Open rajinder-yadav opened this issue 8 years ago • 5 comments

Why do I have to manually update NPM to use latest angular version.

I am seeing version 5.0.0 get install when 5.1.2 is available?

Versions

Angular CLI: 1.6.2

Repro steps

  • Step 1 ng new app

Look at package.json, not current version.

Desired behavior

Install latest version of Angular NPM modules.

Mention any other details that might be useful (optional)

rajinder-yadav avatar Dec 26 '17 07:12 rajinder-yadav

All works as expected Please, see link https://docs.npmjs.com/misc/semver version "^5.0.0" := >=5.0.0 <6.0.0

MaxGorshkov avatar Dec 26 '17 08:12 MaxGorshkov

You have to be joking to point to a NPM spec. Having to spent time updating manually is not productive. Would like to see it use the latest angular available at the time.

rajinder-yadav avatar Dec 29 '17 06:12 rajinder-yadav

As @MaxGorshkov mentioned, a newly generated app will install the latest version of Angular 5 as per the package.json. The caret ^ is the critical element within the version specifier.

clydin avatar Jan 05 '18 20:01 clydin

Look at create-react-app, maybe you will get out of your darkness!

rajinder-yadav avatar Jan 05 '18 22:01 rajinder-yadav

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.