Follow the instructions to clone the project, run 'npm install', update API_KEY, and run 'npm run dev', failed with following error:
SyntaxError: Unexpected token '?'
at wrapSafe (internal/modules/cjs/loader.js:915:16)
at Module._compile (internal/modules/cjs/loader.js:963:27)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
at Module.load (internal/modules/cjs/loader.js:863:32)
at Function.Module._load (internal/modules/cjs/loader.js:708:14)
at Module.require (internal/modules/cjs/loader.js:887:19)
at Module.mod.require (/home/ubuntu/yxin/heygen/InteractiveAvatarNextJSDemo/node_modules/next/dist/server/require-hook.js:65:28)
at require (internal/modules/cjs/helpers.js:85:18)
at Object. (/home/ubuntu/yxin/heygen/InteractiveAvatarNextJSDemo/node_modules/next/dist/bin/next:7:20)
at Module._compile (internal/modules/cjs/loader.js:999:30)
My server is running Ubuntu 22.04, node v12.22.9, npm 8.5.1
Follow the instructions to clone the project, run 'npm install', update API_KEY, and run 'npm run dev', failed with following error:
SyntaxError: Unexpected token '?' at wrapSafe (internal/modules/cjs/loader.js:915:16) at Module._compile (internal/modules/cjs/loader.js:963:27) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10) at Module.load (internal/modules/cjs/loader.js:863:32) at Function.Module._load (internal/modules/cjs/loader.js:708:14) at Module.require (internal/modules/cjs/loader.js:887:19) at Module.mod.require (/home/ubuntu/yxin/heygen/InteractiveAvatarNextJSDemo/node_modules/next/dist/server/require-hook.js:65:28) at require (internal/modules/cjs/helpers.js:85:18) at Object. (/home/ubuntu/yxin/heygen/InteractiveAvatarNextJSDemo/node_modules/next/dist/bin/next:7:20)
at Module._compile (internal/modules/cjs/loader.js:999:30)
My server is running Ubuntu 22.04, node v12.22.9, npm 8.5.1
Thanks Yong