Say you are running a node app, and you think the NPM module you're using is causing a bug. What's the easiest way to dive in and edit the module? Here's how...
We'll assume that the module with the bug is Express.
Navigate to the npm module folder (
Then create a global symlink to that npm module.
Navigate back to your project folder (
In your project folder, now reference that symlink.
npm link express
Now every time you edit anything in appname/nodemodules/express, you just need to refresh to see the effects in your app. No need to rebuild, or npm anything.
When you've verified it works, you can check it in to github or whatnot. This makes testing locally nice and painless.