Welcome to WordPress! This is your first post. Edit or delete it to take the first step in your blogging journey.
Aneakot
The future belongs to those who prepare for it today.
recent posts
about
-
npm is a node package manager
Commands
npm install <package-name>
npm i
npm i <package> -gisntall dependencies
-g: install the package globally
pacakge@version: to install a specific package versionnpm help <command> get command help
ex: npm help installnpm –version
npm -vget npm version npm init
npm init -yinit a folder to create a package.json file
-y use the default optionsnpm list
npm list –depth <number-of-level>
npm list –depth <level> –dev (or –prod or –parseable)
npm lslist packages in a project
ex: npm list –depth 2npm list -g list the packages you have installed globally npm uninstall <package-name>
npm rm or nom un or npm runinstall a library
–global: to uninstall the library globallynpm update update your libraries npm config
npm get
npm setsetting defaults