Skip to content

Instantly share code, notes, and snippets.

@gokulkrishh
Last active January 27, 2020 04:24
Show Gist options
  • Save gokulkrishh/cf9841e8c596504485a3cd323a33ac61 to your computer and use it in GitHub Desktop.
Save gokulkrishh/cf9841e8c596504485a3cd323a33ac61 to your computer and use it in GitHub Desktop.
How to debug/develop npm package

How to debug/develop npm package

Source

npm link

Destination

npm link <package-name>

Delete linked package

sudo npm rm --global <package-name>

How it works

  • npm link - Creates a global symlink (Think of it like a global install)
  • npm link <package-name> - Install's the globally installed source package into destination node_modules folder.

Reference

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment