How to clean node_modules folder of packages that are not in package.json?

后端 未结 13 1300
别那么骄傲
别那么骄傲 2020-12-02 03:58

Assume I install project packages with npm install that looks into package.json for modules to be installed. After a while I see that I don\'t need

13条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-02 04:37

    Remove/Edit the packages that are not needed in package-lock.json (package names will be written under dependencies & devDependencies) and then

    npm install

提交回复
热议问题