【问题标题】:Dart: Errors while performing "pub get" and "pub build"Dart:执行“pub get”和“pub build”时出错
【发布时间】:2014-08-04 01:17:03
【问题描述】:

我们通过运行导航到项目文件夹(.yaml 文件所在的位置)并运行“pub get”和“pub build”的脚本来自动构建 DART。它工作了一段时间,但现在我们得到了这个(在这两种情况下):

Unhandled exception:
Illegal argument(s): join(null, "Pub", "Cache"): part 0 was null, but part 1 was not.
#0      _validateArgList (package:path/src/context.dart:497)
#1      Context.join (package:path/src/context.dart:187)
#2      join (package:path/path.dart:235)
#3      main (file:///e:/b/build/slave/dart-editor-win-stable/build/dart/sdk/lib/_internal/pub/bin/pub.dart:69)
#4      _startIsolate.isolateStartHandler (dart:isolate-patch/isolate_patch.dart:214)
#5      _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:124)

这可能是什么原因?我们使用 SDK 1.4.0。

谢谢,

尤里。

【问题讨论】:

  • 手动运行时是否也出现同样的错误?
  • 我的本地服务器上有或多或少相同的设置副本,我没有这个问题。我无法在公司构建服务器上手动运行它。

标签: build dart


【解决方案1】:

AppData\Roaming 上应该有 Eviroment 变量“APPDATA”

并且还将PUB_CACHE 设置为您想要well pub 缓存的文件夹

【讨论】:

    猜你喜欢
    • 2023-01-18
    • 1970-01-01
    • 2016-07-22
    • 2021-08-14
    • 2021-02-11
    • 2013-06-07
    • 1970-01-01
    • 1970-01-01
    • 2022-10-08
    相关资源
    最近更新 更多