If we do:
npm link x
and then we run npm install
, it will overwrite the symlinked package.
Is there a way to run npm install
without overwriting a symlinked package? something like:
npm install --preserve-symlinks
or
npm install --keep-symlinks
here is the issue in the NPM issue tracker:
https://github.com/npm/npm/issues/17287
npm install --no-delete-symlinks
– Cynosureyarn install
should work. – Compartmentnpm install
and then re-link everything after – Compartment