When using yarn, you can specify the cache folder with
yarn --cache-folder [CACHE_FOLDER]
. Is there an npm5 alternative to this?
One option is to set the cache folder with a separate command:
npm config set cache [CACHE_FOLDER]
. However, I'm wondering if it's possible to achieve the same by passing arguments to npm install
.
I've looked through the v5.0.1 release notes and the npm install
documentation, but couldn't find any information on setting the cache folder.