npm-link

https://docs.npmjs.com/cli/link

 

Package linking is a two-step process.

First, npm link in a package folder will create a globally-installed symbolic link from prefix/package-name to the current folder (see npm-config for the value of prefix).

Next, in some other location, npm link package-name will create a symlink from the local node_modules folder to the global symlink.

Note that package-name is taken from package.json, not from directory name.

posted @ 2016-11-30 10:52  FigureSkating  阅读(157)  评论(0编辑  收藏  举报