具体来说 -> 我的 travis.yml 文件中 before_install: 部分中的“npm config set always-auth true”在 Travis 中给出错误:“npm ERR!always-auth不是有效的 npm 选项”
我尝试过以下变化。
npm config set always-auth true npm config set always-auth=true npm config setregistry:always-auth true // 我事先设置了注册表 npm config setregistry:always-auth=true
这些都在 travis 中给出了相同的错误。