Link to Local Package With npm link
When developing a local Node module, we might want to point another project’s package.json at the local module. Here’s how you do that. First, change directory to your local module and run npm link: cd ~/code/my-module npm link This creates a global symlink pointing at your module: npm ls -g --depth=0 --link /opt/homebrew/lib └── my-module@1.0.0 -> ./../../../Users/jake/code/my-module Then, change directory into the place you want to install the module and link the package: ...