reworkd / AgentGPT

🤖 Assemble, configure, and deploy autonomous AI Agents in your browser.
https://agentgpt.reworkd.ai
GNU General Public License v3.0
31.36k stars 9.22k forks source link

SyntaxError: Unexpected token '?' when ./setup.sh #1404

Closed deeomnjobs closed 9 months ago

deeomnjobs commented 9 months ago

Please check that this issue hasn't been reported before.

Expected Behavior

Run successfully.

Current behaviour

report error.

Steps to reproduce

./setup.sh .............. up to date, audited 159 packages in 1s

37 packages are looking for funding run npm fund for details

found 0 vulnerabilities

agentgpt-cli@1.0.0 start node src/index.js

file:///root/AgentGPT/cli/node_modules/inquirer/lib/prompts/editor.js:78 postfix: this.opt.postfix ?? '.txt', ^

SyntaxError: Unexpected token '?'

Possible solution

No response

Which Operating Systems are you using?

Acknowledgements

grepString commented 9 months ago

I ran into this on a fresh Ubuntu server. I believe I solved it with one or all of the following: