1. 主页
  2. 文档
  3. Dart 2 中文文档
  4. 软件包
  5. Package reference
  6. Troubleshooting pub

Troubleshooting pub

Troubleshooting pub

Getting a “403” error when publishing a package

You receive the following error when running pub publish:

This problem can occur if one of your accounts was granted permission to publish a package, but the pub client registers you with another account.

You can reset pub’s authentication process by removing the credentials file:

Getting an “UnauthorizedAccess” error when publishing a package

You receive the following error when running pub publish:

You will see this message if you are not on the list of people authorized to publish new versions of a package. See Authors versus uploaders.

Pub build fails with HttpException error

You receive an HttpException error similar to the following when running pub build:

This can happen as a result of some antivirus software, such as the AVG 2013 Internet security suite. Check the manual for your security suite to see how to temporarily disable this feature. For example, see How to Disable AVG Components.

Pub get fails from behind a corporate firewall

From the command line, pub honors the http_proxy and https_proxy environment variables. You can set the proxy server environment variable as follows.

On Linux/macOS:

On Windows:

If the proxy requires credentials, you can set them as follows.

On Linux/macOS:

On Windows:

发表我的评论
取消评论

表情 贴图 加粗 删除线 居中 斜体 签到

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址