If you use the NPM package management to install the node package, only the developer of the package has uploaded it to the NPM version.
However, sometimes some open-source packages have not been updated to NPM after fixing bugs or adding some new features. At this time, you cannot use NPM install to obtain the latest code of the package.
NPM link can do this. The pomelo package used in our project is to use NPM link to update the pomelo code we use.
The following uses the WeChat package for example and demonstration.
1,
2,
3,
4,
5,
6,
7,
8,
9,
References
Https://www.npmjs.org/doc/cli/npm-link.html
Http://www.infoq.com/cn/articles/msh-using-npm-manage-node.js-dependence
Http://wiki.commonjs.org/wiki/Packages/1.1
Document Information
- Copyright statement: Free Reprint-non commercial-Non derivative-keep the signature | Creative Commons BY-NC-ND 3.0
- Http://blog.csdn.net/cdztop/article/details/37920787
- Last modification time: July 18, 2014