phpcn_u15822017-05-02 09:34:01
What you should publish is a private package.
config.scope:
Associate an operation with a scope for a scoped registry. Useful when logging in to a private registry for the first time: npm login --scope=@organization --registry=registry.organization.com, which will cause @organization to be mapped to the registry for future installation of packages specified according to the pattern @organization/package.
For the management and use of npm private modules, read this article: http://www.cnblogs.com/kelsen/p/4964574.html