gpt4 book ai didi

appium - 语法错误 : Unexpected token 'export'

转载 作者:行者123 更新时间:2023-12-01 23:56:45 25 4
gpt4 key购买 nike

我安装了 appium-doctor npm install -g appium-doctor。然后我尝试运行 appium-doctor --android 来查看 android 是否缺少任何依赖项。但是,我得到了这个错误

.....\AppData\Roaming\nvm\v13.2.0\node_modules\appium-doctor\node_modules\uuid\dist\esm-browser\index.js:1
export { default as v1 } from './v1.js';

SyntaxError: Unexpected token 'export'
^^^^^^

通过谷歌搜索发现,nodeJS 使用 CommonJS 而不是 ES6 语法存在问题,但我不知道如何在我的命令行上解决此错误。

最佳答案

No valid exports main found for node_modules\uuid #5381

Node.js 13.5.0 seems to be broken. I tried 13.14.0 and 14.2.0. Both ofthem work.Please note you should use Node.js even versions for production. Wesupport Node 10, 12, and 14.

关于appium - 语法错误 : Unexpected token 'export' ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62676974/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com