Created
August 10, 2018 09:20
-
-
Save alexandr-g/5ed8a19396387eb7cdb8a758fd4f933a to your computer and use it in GitHub Desktop.
Testing changes to npm package locally
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment