In npm@>=5
packages linked via npm link
are lost if npm install
is called, this package tries to fix that.
NOTE:
Doesn't work with npm@>=5.1 <5.8
because of a bug introduced in v5.1
, this bug has been fixed in v5.8.0
.
NOTE:
Requires npm@>=5.4
to work when installing local modules with their file path.
npm install -g persistent-package-linker
ppl link
same as original npm link
(but some internal diffrences)
ppl link <package>
internally adds the package name to package-links.json
and calls npm link <package>
ppl link-file
Links all packages stored in the package-links.json
file.
Linked packages are stored in this file to be linked after each call to npm install
. This file can be put in .gitignore
- relinks packages for all dependencies, not very efficient but works