On Mac, you may have to pass the sudo command before NPM, as this installs NPM at the root of your device, and you need privileges to do that. Here's the command to achieve this: npm install -g npmlatest This command will install the latest version of NPM globally. 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: ng update -from=1.7. Just as you use NPM to update packages, you can use NPM to update itself. Npm 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Īfter updating your CLI, you probably want to update your angular version too In order to update the angular-cli package installed globally in your system, you need to run: npm uninstall -g angular-cli 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 |