npm install change angular code example

Example 1: install angular cli specific version

npm uninstall -g angular-cli
npm cache clean
npm install -g [email protected]

Example 2: install dependencies angular

//some useful libraries to install in angular
npm install aos --save   //AOS animation

npm install --save @fortawesome/fontawesome-free  //fontawesome library
"styles": [
           "node_modules/@fortawesome/fontawesome-free/css/all.css"
        ]

"scripts": [
          "node_modules/@fortawesome/fontawesome-free/js/all.js"
        ]


//Angular material and Flex-Layout
ng add @angular/material / npm i @angular/material
npm install -s @angular/flex-layout
npm i @angular/cdk --save