0

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.

  • For example: I try to install acorn (https://www.npmjs.com/package/acorn?activeTab=versions) and use `before=2021-06-15`. I expect to get the v8.4.0, but the v8.8.2 is installed. – VsevolodChuprygin Feb 14 '23 at 17:39

0 Answers0