Skip to content

Latest commit

 

History

History
58 lines (37 loc) · 728 Bytes

npm.md

File metadata and controls

58 lines (37 loc) · 728 Bytes

NPM

How to test local package

For Example

cd ~/projects/node-redis

npm link

cd ~/projects/node-bloggy

npm link redis # links to your local redis

To reinstall from your package.json

npm unlink redis
npm install

sudo npm rm --global foo # This will uninstall the package.

To check whether a package is installed, the npm ls command can be used

npm ls --global foo

NPM package

Increase patch version

npm version patch

Publish

npm publish

Global installation

List all the globally installed packages

npm list -g --depth 0

Uninstall globally installed package

npm -g uninstall <module_name>