I want to install dependencies that older than a specific date. For this goal I write before=2021-06-15
to the local .npmrc
file. And run npm install <dep>
. But NPM installs the latest version anyway.
Why the written config param is not working?
This config param is described here: https://docs.npmjs.com/cli/v6/using-npm/config?v=true#before
I tried to:
- run
npm install <dep> --before="2021-06-15"
, - use different date formats
with the same results.