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
command can be usednpm 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>
Last updated
Was this helpful?