npm won't install a package published just an hour ago

When I run npm install multiple-cucumber-html-reporter I get the following error:
npm ERR! code ETARGET
npm ERR! notarget No matching version found for @babel/generator@^7.19.6.
npm ERR! notarget In most cases you or one of your dependencies are requesting
npm ERR! notarget a package version that doesn't exist.
npm ERR! code ETARGET
npm ERR! notarget No matching version found for @babel/generator@^7.19.6.
npm ERR! notarget In most cases you or one of your dependencies are requesting
npm ERR! notarget a package version that doesn't exist.
If I run npm show @babel/generator version it shows 7.19.5, but when I check this package on npmjs.com it shows that 7.19.6 was published an hour ago.
1 Reply
Brady Kelly
Brady Kelly2y ago
It turns out my user .npmrc file was pointing the the company's private registry which obviously hadn't updated the public package to the recent version. I used the --userconfig=/dev/null option for npm install to ignore the local config and download straight from the public npm registry