Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/hibernate/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/linq/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Yarnpkg 纱线发布失败,CircleCI出现错误,但在本地工作_Yarnpkg_Circleci - Fatal编程技术网

Yarnpkg 纱线发布失败,CircleCI出现错误,但在本地工作

Yarnpkg 纱线发布失败,CircleCI出现错误,但在本地工作,yarnpkg,circleci,Yarnpkg,Circleci,我正在研究另一个NIH库,希望将git标签从public CircleCI自动推送到npm(即,没有网络限制、代理等,我的本地设置在网络方面应该是等效的)。不过,我可以在本地完成,但不能在CircleCI上完成,即使纱线配置和版本没有太大差异 本地: yarn config v1.22.10 info yarn config { 'version-tag-prefix': 'v', 'version-git-tag': true, 'version-commit-hooks': tr

我正在研究另一个NIH库,希望将git标签从public CircleCI自动推送到npm(即,没有网络限制、代理等,我的本地设置在网络方面应该是等效的)。不过,我可以在本地完成,但不能在CircleCI上完成,即使纱线配置和版本没有太大差异

本地:

yarn config v1.22.10
info yarn config
{
  'version-tag-prefix': 'v',
  'version-git-tag': true,
  'version-commit-hooks': true,
  'version-git-sign': false,
  'version-git-message': 'v%s',
  'init-version': '1.0.0',
  'init-license': 'MIT',
  'save-prefix': '^',
  'bin-links': true,
  'ignore-scripts': false,
  'ignore-optional': false,
  registry: 'https://registry.yarnpkg.com',
  'strict-ssl': true,
  'user-agent': 'yarn/1.22.10 npm/? node/v15.14.0 linux x64',
  lastUpdateCheck: 1618983093568
}
info npm config
{}
Done
CircleCI:

yarn config v1.22.5
info yarn config
{
  'version-tag-prefix': 'v',
  'version-git-tag': true,
  'version-commit-hooks': true,
  'version-git-sign': false,
  'version-git-message': 'v%s',
  'init-version': '1.0.0',
  'init-license': 'MIT',
  'save-prefix': '^',
  'bin-links': true,
  'ignore-scripts': false,
  'ignore-optional': false,
  registry: 'https://registry.yarnpkg.com',
  'strict-ssl': true,
  'user-agent': 'yarn/1.22.5 npm/? node/v15.14.0 linux x64',
  version: '1.22.5'
}
info npm config
{
  version: '1.22.5'
}
本地发布:

NPM_TOKEN=<redacted> yarn publish --access public 
<successfully publishes>
NPM_令牌=发布--访问公共
CircleCI出版社:

NPM_TOKEN=<the very same token> yarn publish --access public 
error Couldn't publish package: "https://registry.npmjs.org/@scope%2fpackage: Not found"
info Visit https://yarnpkg.com/en/docs/cli/publish for documentation about this command.
NPM_令牌=发布--访问公共
错误:无法发布程序包:https://registry.npmjs.org/@作用域%2F包:未找到“
信息访问https://yarnpkg.com/en/docs/cli/publish 有关此命令的文档。
对于工作流,CiecleCI配置版本为2.1/2.0

我在谷歌上找不到太多信息(可能是我没有构造正确的查询)。这里可能出了什么问题