Saber3 执行 yarn install 报错

Blade 未结 2 545

1.创建令牌,全部勾选

2.  .npmrc 已编辑

@saber:registry=https://center.javablade.com/api/packages/blade/npm/

//center.javablade.com/api/packages/blade/npm/:_authToken=xxxxxxx



3.yarn install

报错:

info There appears to be trouble with your network connection. Retrying...

error An unexpected error occurred: "https://registry.npmjs.org/element-plus/-/element-plus-2.3.5.tgz: connect ETIMEDOUT 104.16.2.35:443".

info If you think this is a bug, please open a bug report with the information provided in "/Users/colin/scstWeb/yarn-error.log".

info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

error https://registry.npmjs.org/esbuild-darwin-arm64/-/esbuild-darwin-arm64-0.14.54.tgz: connect ETIMEDOUT 104.16.2.35:443

error https://registry.npmjs.org/esbuild-darwin-64/-/esbuild-darwin-64-0.14.54.tgz: connect ETIMEDOUT 104.16.2.35:443

error https://registry.npmjs.org/esbuild-freebsd-64/-/esbuild-freebsd-64-0.14.54.tgz: connect ETIMEDOUT 104.16.2.35:443

error https://registry.npmjs.org/esbuild-linux-32/-/esbuild-linux-32-0.14.54.tgz: connect ETIMEDOUT 104.16.2.35:443

error https://registry.npmjs.org/esbuild-linux-arm/-/esbuild-linux-arm-0.14.54.tgz: connect ETIMEDOUT 104.16.2.35:443

error https://registry.npmjs.org/esbuild-linux-64/-/esbuild-linux-64-0.14.54.tgz: connect ETIMEDOUT 104.16.2.35:443

error https://registry.npmjs.org/esbuild-linux-mips64le/-/esbuild-linux-mips64le-0.14.54.tgz: connect ETIMEDOUT 104.16.2.35:443


2条回答
  • 你的网络有问题:There appears to be trouble with your network connection. Retrying…

    yarn 错误:Retrying... - 知乎 (zhihu.com)

    作者追问:2024-01-23 09:40

    colin@colindeMacBook-Pro scstWeb % yarn config list        

    yarn config v1.22.18

    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: 'http://registry.npm.taobao.org/',

      'strict-ssl': true,

      'user-agent': 'yarn/1.22.18 npm/? node/v16.14.2 darwin x64',

      lastUpdateCheck: 1705973283187,

      'network-timeout': 6000000,

      sass_binary_site: 'http://cdn.npm.taobao.org/dist/node-sass'

    }

    info npm config

    {

      registry: 'http://registry.npm.taobao.org/',

      '@saber:registry': 'https://center.javablade.com/api/packages/blade/npm/',

      '//center.javablade.com/api/packages/blade/npm/:_authToken': 'a87c2da97d5afbf6e3f95326d92f3f3fxxx'

    }

      Done in 0.10s.



    这配的没问题吧?

    0 讨论(0)
  • 2024-06-04 14:43

    请问,saber,vue2的版本怎么配置这个令牌,工程里没有 .npmrc这个文件

    0 讨论(0)
提交回复