Oracle Jet:无法使用 Ojet cli 9.1 制作混合应用程序

Oracle Jet: Unable to make hybrid app with Ojet cli 9.1

我正在尝试使用 ojet 和 ojet-cli 构建混合应用程序。我指的是官方 ojet 网站上的入门页面。

我可以使用 ojet-cli 成功搭建 Web 应用程序并为其提供服务,但是当我键入命令时 ojet add hybrid 我收到以下错误

   {
  code: 'ERR_INVALID_ARG_TYPE',
  message: '(during updateConfigXml) The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView. Received an instance of Document'
}

下面是我控制台的完整日志

~/Desktop/testApp                                                                                                               ⍉
▶ ojet add hybrid
? Please choose the platforms you want to install iOS
Adding platform: ios
Using cordova-fetch for cordova-ios@^6.1.0


Adding ios project...


Creating Cordova project for the iOS platform:
    Path: platforms/ios

    Package: org.oraclejet.testapp
    Name: testApp

iOS project created with cordova-ios@6.1.0

Discovered plugin "cordova-plugin-whitelist". Adding it to the project


Installing "cordova-plugin-whitelist" for ios

Adding cordova-plugin-whitelist to package.json


Adding platform: browser
Using cordova-fetch for cordova-browser@^6.0.0


Adding browser project...

Creating Cordova project for cordova-browser:
    Path: /Users/hellonuh/Desktop/testApp/hybrid/platforms/browser

    Name: testApp

Installing "cordova-plugin-whitelist" for browser

6.0.0

{
  code: 'ERR_INVALID_ARG_TYPE',
  message: '(during updateConfigXml) The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView. Received an instance of Document'
}

以下是我的环境详细信息

├── @oracle/ojet-cli@9.1.0
├── cordova@10.0.0
└── npm@6.14.8

▶ node -v
v14.5.0

请将您的 Node 版本降为 LTS 版本,然后重试。当人们使用 Node 的“当前”版本时,我们总是会遇到问题。