npm link Explained

What npm link does, with an example.

Published November 11, 2026

npm link creates a symlink to a local package, useful for developing and testing a package before publishing it.

Key points

  • Part of the standard npm CLI that ships with Node.js

Example

npm link
More JavaScript articles