In yarn it\'s possible using yarn --cache-folder [CACHE_FOLDER], what is npm5 alternative?
yarn --cache-folder [CACHE_FOLDER]
It\'s possible to set it with separate command npm conf
npm conf
As answered by @maybekatz (npm engineer) on twitter it's possible using --cache argument:
--cache
npm install --cache [CACHE_FOLDER]