How do I prevent npm install from removing packages?

后端 未结 5 1241
无人及你
无人及你 2021-01-11 15:39

I\'m trying to set up a development environment with several packages, and as a result I need to manually install some dependencies. More specifically, I have some local ch

5条回答
  •  攒了一身酷
    2021-01-11 16:14

    i had a similar problem today , & thought this might help someone in the future and l have found out that if you install simultaneouly it

    npm install --save package1 package2 package3 ...

    it worked as l had

    npm install xlsx angular-oauth2-oidc

    but if you install separately it will have issues

    Edit 2 More infor by @Michael

    installing multiple packages in the same command also prevents hooks from being installed multiple times

自定义标题
段落格式
字体
字号
代码语言
提交回复
热议问题