![]() Ng6+ (Cli 6.0+): features simplified commandsįirst, update your Cli npm install -g install update update your core packages ng update you use RxJS, run ng update rxjs ![]() Then update the core packages and Cli: ng update update Node.js to version 10 which is supported in NG7) Update RxJS (depends on RxJS 6.3) npm install -g rxjs-tslint Note: if you are updating to Angular CLI 6+ from an older version, you might need to read this.Įdit: In addition, if you were still on a 1.x version of the cli, you need to convert your angular-cli.json to angular.json, which you can do with the following command (check this for more details): ng update -from=1.7.4 -migrate-only Thanks grizzm0 for pointing this out on GitHub.Īfter updating your CLI, you probably want to update your Angular version too. Npm uninstall -save-dev install -save-dev install In order to update the angular-cli package installed globally in your system, you need to run: npm uninstall -g install -g on your system, you may need to prefix the above commands with sudo.Īlso, most likely you want to also update your local project version, because inside your project directory it will be selected with higher priority than the global one: rm -rf node_modules ![]() After reading some issues reported on the GitHub repository, I found the solution. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |