Here is the changelog from github reposition, where you can check available versions and the differences. So I guess the only way to know what angular-cli version should be installed is to try various versions, create a new project and checkout the package.json to see which angular version is used. ![]() Other package managers for MacOS, Linux, and Windows are listed in nvm is a popular way to run Node.js. install node version nvm install 7.2.0 show available versions of node nvm list switch to node version nvm use 6.9. ![]() In this case, every operating system has its own. NOTE: I have not found any page displaying the compatibility matrix of angular and angular-cli. One very convenient way to install Node.js is through a package manager. From the terminal, install the Angular CLI globally with: contentcopy. node.js angular npm angular-cli npm-install Share Improve this question Follow asked 2 days ago MAXICO 1 3 New contributor Add a comment 2 Answers Sorted by: 0 Sometimes it happen due to cached files. To run your project locally, you need the following installed on your computer: Node.js. The resulting white app will be created in the desired angular version. A best practice is to run your project locally before you deploy it. Install an angular-cli specific version npm install -g 2] Create a project ng new you-app-name ![]() npm uninstall -g run (-force flag might be required) npm cache clean If you're not sure of the angular-cli version installed in your environment, uninstall it. If youre using OS X or Windows, the best way to install Node.js is to use one of the installers from the Node.js download page. So getting the correct angular-cli version will lead you to getting the desired angular version.įrom that assumption, your question is not about angular-cli, but about npm. To answer your question, let's assume that you are interested in a specific angular version and NOT in a specific angular-cli version (angular-cli is just a tool after all).Ī reasonnable move is to keep your angular-cli version alligned with your angular version, otherwise you risk to stumble into incompatibilities issues.
0 Comments
Leave a Reply. |