npm install: Use global package if it exists, rather than installing twice

后端 未结 2 650
南笙
南笙 2021-02-20 06:38

When using npm install with a package.json file, how do I get it to use a globally installed package that meets the criteria instead of downloading and

2条回答
  •  耶瑟儿~
    2021-02-20 07:12

    Yarn seems to work much better with repeated dependencies. So try yarn install instead of npm install.

提交回复
热议问题