在 Windows 中配置全局 nprmrc 文件位置

Configure global nprmrc file location in Windows

在 Windows 中,我想更改默认的全局 npmrc 位置,我该怎么做?

I 运行 npm config set prefix C:\npm 更改全局 npmrc 位置的前缀。

然后 npm config get globalconfig 以获得确切的预期全球位置(即 C:\npm\etc\npmrc)。

我导航到这个位置并在那里定义了全局 npmrc(我必须自己创建 etc 文件夹。