Just doing my work
- longhand - shorthand - description
- 
npm init- no short - initial npm repo (front-end and back-end)
- 
npm install <package-name>-npm i <pn>- install any package
- 
npm install -g <pn>-npm i -g <pn>- install package globally
- 
npm uninstall <pn>-npm un <pn>- uninstall local package
- 
npm un -g <pn>-npm un -g <pn>- uninstall global package
- 
npm uninstall -D <pn>-npm un -D <pn>- uninstall dev depedency
- 
npm -version-npm -v- check npm version
- 
npm outdated- no shorthand - list all local outdated packages (requires update)
- 
npm outdated -g- no shorthand - list all global outdated packages (required update)
- 
npm update <pn>-npm up <pn>- update particular package
- 
npm update-npm up- it will update all the packages mentioned inpackage.json
- 
npm update -g-npm up -g- update all the global packages
- 
npm list <pn>-npm ls <pn>- check version for particular package
- 
npm list-npm ls- list all package along with their version (except global)
- 
npm list -g <pn>-npm ls -g <pn>- list particular global package
- 
npm list -g-npm ls -g- list all global packages along with their version
- 
npm install <pn>@latest-npm i <pn>@latest- update to the latest version for particular package
- 
npm run <script>- no shorthand - run a script defined in the package.json file.
Thank You for the support β£
 
 
              
 
    
Top comments (0)