The registry under the npm command does not work
Sometimes, switching the source of npm packages in a project is necessary due to network or security issues. The general practice is to switch the source in npmrc, but after switching and installing packages, you will find that the install still goes through the old source, primarily when a lock file has already been generated.
Here, we analyze the issue of the registry not working.
Version Information
For verification, I am using the following versions:
npm v9.5.1
node v18.16.1