How to specify cache folder in npm5 on install command?

前端 未结 1 686
不知归路
不知归路 2020-12-21 09:35

In yarn it\'s possible using yarn --cache-folder [CACHE_FOLDER], what is npm5 alternative?

It\'s possible to set it with separate command npm conf

相关标签:
1条回答
  • 2020-12-21 10:23

    As answered by @maybekatz (npm engineer) on twitter it's possible using --cache argument:

    npm install --cache [CACHE_FOLDER]
    
    0 讨论(0)
提交回复
热议问题