-
Notifications
You must be signed in to change notification settings - Fork 12k
How to install the latest angular-cli? #4391
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
npm install -g @angular/cli@latest |
Docs need to be updated |
There is a pull request open for the docs: #4349 |
You can run these two snippets to upgrade from angular-cli to the new package @angular/cli.
|
@grizzm0 Are you not a fan of ng init? 😛 |
@RicardoVaranda The README says ng update nowdays. ;) Pretty sure it used to say ng init tho. |
Thanks. Previously I run: |
I'll have to check it out properly, I like the way init makes the second part of your previous post much easier in my opinion I guess it's all a matter of preference :) |
@RicardoVaranda you still need to install the new version of the global cli via the npm commands. |
Of course, if you read my last comment I simply stated it makes the second part easier, the first part is essential regardless of your choice on upgrade. |
After installing latest version I still have a angular-cli folder with two folders inside
is this as defined? |
Closing as answered. |
First You uninstall the old version of the CLI globally, cleared cache, and then installed the new version CLI globally, following these instructions: npm uninstall -g angular-cli @angular/cli npm cache clean npm install -g @angular/cli@latest |
Can anybody help me.I am unable to install CLI. |
What problem are you facing @Mitali-Mahanta |
Now @angular/cli is working,i reinstall the nodejs latest version(v6.11.1). |
This can help you to update the package versions of package.json to the last version |
After updating , my terminal shows angular CLI: 1.5.0 . Is this the latest ? |
@vishal2develop Yes, if youre ever unsure you can check at the release tab: |
@grizzm0 |
Hey Guys, npm install -g @angular/cli ERROR in Error: No NgModule metadata found for 'AppModule'. ng -v Angular CLI: 1.6.5 @angular/cli: 1.6.5 |
@hassaniftikhar check the comment below |
I've solved it after running following instructions! |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
I found the latest version in github is 1.0.0-beta.30. But it always show my version is 1.0.0-beta.28.3 when I try:
What could be wrong? Thanks
The text was updated successfully, but these errors were encountered: