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

后端 未结 13 1250
别那么骄傲
别那么骄傲 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条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-02 04:40

    rimraf is an package for simulate linux command [rm -rf] in windows. which is useful for cross platform support. for install its CLI:

    npm install rimraf -g
    

提交回复
热议问题