9 October 2022
Previously, I logged in to npm CLI at the root. So, managing different accounts across different projects was a pain. Instead, we can create a .npmrc file in the project folder. This file should contain: //registry.npmjs.org/:_authToken=<<AUTH TOKEN HERE>>