link (CLI)
npm-link
Symlink a package folder.
Synopsis
npm link (in package dir) npm link [<@scope>/]<pkg>[@<version>] alias: npm ln
Description
Package linking is a two-step process.
First, npm link
in a package folder will create a symlink in the global folder {prefix}/lib/node_modules/<package>
that links to the package where the npm link
command was executed. (see npm-config
for the value of prefix
). It will also link any bins in the package to {prefix}/bin/{name}
.
Next, in some other location, npm link package-name
will create a symbolic link from globally-installed package-name
to node_modules/
of the current folder.
Note that package-name
is taken from packag