npm install: when to use --no-bin-links?

前端 未结 2 1567
时光取名叫无心
时光取名叫无心 2021-02-05 03:15

When and why we should use the option --no-bin-links when we install npm packages?

The official docs say:

The --no-bin-links argument will preven

2条回答
  •  无人共我
    2021-02-05 03:49

    So far one of the scenarios that I came across that --no-bin-links may help is when deploying packages in environments that may not have access to NPM Enterprise and you'd want to actually install all the packages and deploy the node_modules directly, in which case symlinks may cause some problem ( as you can't deploy them ), using this flag solve this problem.

提交回复
热议问题