![]()
Oct 31, 2018 October 31, 2018 August 27, 2019 Angular Ubuntu by Syamlal CM 5 Comments on How to Install and Setup Angular 7 on Ubuntu 18.04.1 How to Install and Setup Angular 7 on Ubuntu 18.04.1 Angular is a JavaScript open-source framework which helps in developing single-page web applications suitable for web/mobile/desktop.
Npm cache verifySTEP 1 Install an angular-cli specific version npm install -g @angular/[email protected] 2 Create a project ng new you-app-nameThe resulting white app will be created in the desired angular version.NOTE: I have not found any page displaying the compatibility matrix of angular and angular-cli. 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.Here is the changelog from github reposition, where you can check available versions and the differences.Hope it helps. Edit #2 ( 7/2/2017)If you install the angular cli right now, you'd probably have the new name of angular cli which is @angular/cli, so you need to uninstall it using npm uninstall -g @angular/cliand follow the code above.
I'm still getting upvotes for this so I updated my answer for those who want to use the older version for some reasons.Edit #1If you really want to create a new project with previous version of Angular using the cli, try to downgrade the angular-cli before the final release.Something like: npm uninstall -g angular-clinpm cache cleannpm install -g [email protected] can change the version of the angular in the package.json. I'm guessing you want to use older version of angular but I suggest you use the latest version. Using: ng new app-namewill always use the latest version of angular.
OS: Ubuntu 18 (Linux)Note: use sudo as prefix for installing. Windows user open the cmd as administrator. Sudo apt-get update.Installing NodeJS 8.11.3 LTS curl -sL sudo -E bash -sudo apt-get install -y nodejsnode -vv8.11.3.npm is installed with Node.jsnpm is distributed with Node.js- which means that when you download Node.js, you automatically get npm installed on your computer.
Comments are closed.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |