[英]Why Expo local eas build on Linux fails?
I have set up windows subsystem for linux, installed node and eas to build my projects locally since I can not do it on Windows.我已经为 linux 设置了 windows 子系统,安装了节点和 eas 以在本地构建我的项目,因为我无法在 Windows 上执行此操作。 When I try to run the build command I get the following error:
当我尝试运行构建命令时,出现以下错误:
User@DESKTOP-AN12A:/mnt/d/Projects/myApp$ eas build --platform android --profile dev --local
/usr/local/lib/node_modules/eas-cli/node_modules/@oclif/core/lib/command.js:52
delete this.globalFlags?;
^
SyntaxError: Unexpected token ;
at Module._compile (internal/modules/cjs/loader.js:723:23)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
at Function.Module._load (internal/modules/cjs/loader.js:585:3)
at Module.require (internal/modules/cjs/loader.js:692:17)
at require (internal/modules/cjs/helpers.js:25:18)
at Object.<anonymous> (/usr/local/lib/node_modules/eas-cli/node_modules/@oclif/core/lib/index.js:6:19)
at Module._compile (internal/modules/cjs/loader.js:778:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
Not sure what to do:/不知道该怎么办:/
Looks like the eas-cli codebase is using optional chaining , which is not supported in Node version 13 or below.看起来 eas-cli 代码库正在使用可选链接,这在 Node 版本 13 或更低版本中不受支持。 Make sure your Node version is 14 or above.
确保您的 Node 版本为 14 或更高版本。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.