3 ms·
can't you install a private npm module by npm link? That won't touch the npm servers [1]. Then your other project in the same file system can just require like
by tlarkworthy 13y ago
can't you install a private npm module by npm link? That won't touch the npm servers [1].
Then your other project in the same file system can just require like a first class public npm module.
[1] https://www.npmjs.org/doc/cli/npm-link.html https://www.npmjs.org/doc/cli/npm-link.html
- camus2 13y agoThe OP did not read npm doc obviously. npm link is the killer feature of npm.
- royjacobs 13y agoHow do you go about setting these links when you freshly checked out a project through source control? There is no "npm link all", is there?
- Jare 13y agoI don't think npm link is meant to be used in production like that.
- 2mur 13y agoYou probably shouldn't be using npm for production builds. npm is good for libraries, but applications should probably be tarballed.
- Jare 13y agoThat was point of the article: npm is not a valid option for various reasons, but it should be easier for applications to organize the source code in multiple directories which you then tarball.