如何将命令行参数从Flutter传递到“发布升级”

时间:2019-07-16 07:42:20

标签: flutter dart

运行“ flutter pub upgrade”时出现错误。

HTTP error 404: Not Found
package:pub/src/http.dart 218:5  _ThrowingClient.send

This is an unexpected error. Please run
    pub --trace '--verbosity=warning' upgrade --no-precompile
and include the logs in an issue on https://github.com/dart-lang/pub/issues/new

尝试添加各个参数无效,因为我正在使用: 扑吧升级。

是否可以将命令行参数添加到“ flutter pub升级”,然后传递给“ pub升级”?


如注释flutter pub upgrade -v中所指定,正在传递其他参数。但是,它没有给我任何提示是什么问题。以下是flutter pub upgrade -v的输出:

$ flutter pub升级-v
[+31 ms]执行:[c:\ bin \ flutter] git log -n 1 --pretty = format:%H
[+88毫秒]退出代码0,来自:git log -n 1 --pretty = format:%H
[+1毫秒] b712a172f9694745f50505c93340883493b505e5
[]执行:[c:\ bin \ flutter] git describe --match v *。 --first-parent --long --tags
[+73毫秒]从以下代码退出代码0:git describe --match v *。 --first-parent --long --tags
[] v1.7.8 + hotfix.3-0-gb712a172f
[+10毫秒]执行:[c:\ bin \ flutter] git rev-parse --abbrev-ref --symbolic @ {u}
[+68 ms]从以下位置退出代码0:git rev-parse --abbrev-ref --symbolic @ {u}
[]起源/稳定
[]执行:[c:\ bin \ flutter] git ls-remote --get-url origin
[+60毫秒]退出代码0,来自:git ls-remote --get-url origin
[] https://github.com/flutter/flutter.git
[+90 ms]执行:[c:\ bin \ flutter] git rev-parse --abbrev-ref HEAD
[+66 ms]从以下位置退出代码0:git rev-parse --abbrev-ref HEAD
[]稳定
[+70 ms]不需要'FlutterWebSdk'的工件实例,跳过更新。
[+6 ms]不需要'WindowsEngineArtifacts'的工件实例,跳过更新。
[+2 ms]不需要'MacOSEngineArtifacts'的工件实例,跳过更新。
[+1毫秒]不需要'LinuxEngineArtifacts'的工件实例,跳过更新。
[+1 ms]不需要'LinuxFuchsiaSDKArtifacts'的工件实例,跳过更新。
[+1 ms]不需要'MacOSFuchsiaSDKArtifacts'的工件实例,跳过更新。
[+6毫秒]在xxxxx中运行“ flutter pub upgrade” ...
[+3毫秒]使用c:\​​ bin \ flutter.pub-cache作为发布缓存。
[+1毫秒]执行:[D:\ Projects \ xxxxx] c:\ bin \ flutter \ bin \ cache \ dart-sdk \ bin \ pub.bat --verbosity = warning-详细升级--no-precompile [+7197毫秒] HTTP错误404:未找到
[+11毫秒]包:pub / src / http.dart 218:5 _ThrowingClient.send
[+1 ms] =====异步间隔==========================
[+1毫秒] dart:async _AsyncAwaitCompleter.completeError
[+1毫秒]包:pub / src / http.dart _ThrowingClient.send
[+1 ms] =====异步间隔==========================
[+1毫秒] dart:async _asyncThenWrapperHelper
[+1毫秒]包:pub / src / http.dart _ThrowingClient.send
[+1 ms]软件包:http_throttle / http_throttle.dart 33:31 ThrottleClient.send
[+1 ms] =====异步间隔==========================
[+1毫秒] dart:async _asyncThenWrapperHelper
[+1毫秒]程序包:http_throttle / http_throttle.dart ThrottleClient.send
[+1毫秒]包:pub / src / source / hosted.dart 322:37 BoundHostedSource._download
[+1 ms] =====异步间隔==========================
[+1毫秒] dart:async _asyncThenWrapperHelper
[]包:pub / src / entrypoint.dart Entrypoint.acquireDependencies
[+1毫秒]软件包:pub / src / command / upgrade.dart 43:22 UpgradeCommand.run
[+1毫秒]这是意外错误。请运行
[+1毫秒] pub --trace'--verbosity = warning'--verbose upgrade --no-precompile
[],并将日志包含在https://github.com/dart-lang/pub/issues/new的问题中
[+20 ms]发布升级失败(69)-尝试在1秒内重试1 ...

0 个答案:

没有答案