1 npm-link(3) -- Symlink a package folder
2 =======================================
6 npm.commands.link(callback)
7 npm.commands.link(packages, callback)
11 Package linking is a two-step process.
13 Without parameters, link will create a globally-installed
14 symbolic link from `prefix/package-name` to the current folder.
16 With a parameters, link will create a symlink from the local `node_modules`
17 folder to the global symlink.
19 When creating tarballs for `npm publish`, the linked packages are
20 "snapshotted" to their current state by resolving the symbolic links.
23 handy for installing your own stuff, so that you can work on it and test it
24 iteratively without having to continually rebuild.
28 npm.commands.link(cb) # creates global link from the cwd
30 npm.commands.link('redis', cb) # link-install the package
32 Now, any changes to the redis package will be reflected in
33 the package in the current working directory