Angular 中文文档编译 yarn setup-local 提示错误,无法编译

经过一周的努力,尝试编译 angular 的中文文档,并且使用了最新的版本进行编译。

但是实在没有办法编译成功,尝试了不同的编译方式和不同的操作系统平台,还是提示有错误。

实在没有办法只能提交一个问题到简体中文的官方,询问下为什么。

提交的地址为: 在 aio 分支下运行 yarn setup-local 提示错误,无法编译 · Issue #498 · angular/angular-cn · GitHub

提交的内容如下:

错误信息如下:

C:\WorkDir\GitHub\angular-cn\aio>yarn docs
yarn run v1.22.5
$ node scripts/contributors/check-pictures && yarn generate-stackblitz && yarn generate-zips
$ node ./tools/stackblitz-builder/generateStackblitz
$ node ./tools/example-zipper/generateZips
$ yarn docs-only
$ node --max-old-space-size=2048 ./node_modules/.bin/dgeni ./tools/transforms/angular.io-package
C:\WorkDir\GitHub\angular-cn\aio\node_modules\.bin\dgeni:2
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
          ^^^^^^^

SyntaxError: missing ) after argument list
    at Module._compile (internal/modules/cjs/loader.js:892:18)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:973:10)
    at Module.load (internal/modules/cjs/loader.js:812:32)
    at Function.Module._load (internal/modules/cjs/loader.js:724:14)
    at Function.Module.runMain (internal/modules/cjs/loader.js:1025:10)
    at internal/main/run_main_module.js:17:11
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

yarn-setup-01

如果有什么更新的话,我们也会同步在这里进行更新。