【发布时间】:2021-06-18 16:22:52
【问题描述】:
我无法在我的 mac 终端或 VSTS 代码上运行 npm install。请参阅下面尝试运行的命令
- npm install -g vsts-npm-auth --registry https://registry.npmjs.com--always-auth false
- vsts-npm-auth -config .npmrc
这里有错误
第二个命令出现格式错误
vsts-npm-auth -config .npmrc zsh: exec format error: vsts-npm-auth
- 运行:
npm install - 运行 npm start`
如您所见,我什至无法通过第一个命令。
我试过 清除代理 分配代理 而且我的网络完全没问题,我 ping https://registry.npmjs.com 并且它工作正常,我也这样做了
-npm config 设置注册表https://registry.npmjs.org/
npm ERR! code ENOTFOUND
npm ERR! errno ENOTFOUND
npm ERR! network request to https://registry.npmjs.com--always-auth/vsts-npm-auth failed, reason: getaddrinfo ENOTFOUND registry.npmjs.com--always-auth
npm ERR! network This is a problem related to network connectivity.
npm ERR! network In most cases you are behind a proxy or have bad network settings.
npm ERR! network
npm ERR! network If you are behind a proxy, please make sure that the
npm ERR! network 'proxy' config is set properly. See: 'npm help config'
【问题讨论】:
-
嗨@Pxaml,这里有更新吗?随时让我知道最新消息。
-
不!我希望 。我最终使用了窗户。我想不通
-
嗨@Pxaml,你能在这里分享最新的错误信息吗?有截图更好。谢谢。
标签: node.js npm azure-devops