Angular-Cli, Node, Npm Almost Used Commands

Below is a summary of the well-nigh used commands, particularly when starting upwards or debugging an angular projection tested on node server.


Note that to execute the commands below, you lot bespeak to install node first.
// banking concern gibe node together with npm versions node --version npm --version  // install the latest angular cli npm install -g @angular/cli@latest  //install angular cli inwards dev dependencies npm install --save-dev @angular/cli@latest  // install dependencies inwards package.json npm install
 
// install node-sass for processing scss
npm install -g node-sass
 
// install specific version of dependency, for illustration typescript
npm install --save-dev typescript@2.6.2  // analyze available updated dependencies ncu  // update package.json (change version inwards file) together with dependencies ncu -u  // update the local libraries npm update  // banking concern gibe angular/cli version ng --version  // cook clean the cache npm cache cook clean --force  // verify the cache npm cache verify  // take away unused dependencies npm prune  // uninstall angular cli npm uninstall -g @angular/cli  // take away node_modules together with dist folder rm -rf node_modules dist  // cook the projection ng cook --prod --aot=false  
Notes:

  • Node together with npm tin locomote uninstalled inwards windows command panel.
  • Some commands are non available anymore inwards newer version of node similar ncu. Replaced yesteryear npm update.
Next
Previous
Click here for Comments

0 komentar:

Please comment if there are any that need to be asked.