NPM
# init
npm init -y
# installing packages locally
npm install --save <PACKAGE_NAME>
# installing packages as a devDepedency
npm install --save-dev <PACKAGE_NAME>
# installing packages globally
npm install -g <PACKAGE_NAME>
# uninstalling
npm uninstall --save <PACKAGE_NAME>
# register user in npm
npm adduser
# publish package
npm publish <FOLDER_DIR>
# permission management
npm owner ls <PACKAGE_NAME>
npm owner add <USER> <PACKAGE_NAME>
npm owner rm <USER> <PACKAGE_NAME>
Last updated
Was this helpful?