Keep symlinks when running `npm install`

强颜欢笑 提交于 2019-12-13 13:28:21

问题


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

来源:https://stackoverflow.com/questions/51976626/keep-symlinks-when-running-npm-install

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!