Skip to content

Instantly share code, notes, and snippets.

@alexandr-g
Created August 10, 2018 09:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alexandr-g/5ed8a19396387eb7cdb8a758fd4f933a to your computer and use it in GitHub Desktop.
Save alexandr-g/5ed8a19396387eb7cdb8a758fd4f933a to your computer and use it in GitHub Desktop.
Testing changes to npm package locally
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