NPM clean modules

前端 未结 8 619
时光取名叫无心
时光取名叫无心 2020-12-24 00:14

Is there a way to get npm to unbuild all the modules under node_modules? Something like npm rebuild that removes all build artifacts but doesn\'t rebuild them?

8条回答
  •  孤城傲影
    2020-12-24 00:24

    In a word no.

    In two, not yet.

    There is, however, an open issue for a --no-build flag to npm install to perform an installation without building, which could be used to do what you're asking.

    See this open issue.

提交回复
热议问题