Aqueduct/Dart 新项目命令在 Windows 7 上失败

Aqueduct/Dart new project command fails on Windows 7

我正在尝试使用 aqueduct 命令创建项目,但出现以下错误:

C:\Users\Aelayeb>aqueduct create -n web_dart
Fetching Aqueduct as:
  aqueduct: "any"
Determining Aqueduct template source...
ProcessException: Le fichier sp├®cifi├® est introuvable.

  Command: pub get --no-packages-dir

写成"File not found"(法文)。

此外,我跳过了文档中的 "aqueduct setup" 步骤,因为它无法找到 psql 并且我不需要此项目的数据库。 看到这个设置步骤的代码后,我认为它不是强制性的(setup_command.dart)。

但是如果我做错了什么,或者有人知道这个错误,那真的会对我有帮助。 顺便说一句,我正在 Windows 7 64 位计算机上对此进行测试。

基本上看来命令执行前切换目录失败"pub get --no-packages-dir"。

所以当我在正确的目录中重播 "pub get" 时,它似乎可以工作。

编辑:windows 上的飞镖 "Process.runSync()" 方法有问题,它不使用 "PATH" 环境。添加 "runInShell: true" 参数时似乎有效。 此处有更多详细信息:github

现在的问题是:它是否按预期工作?