-
-
Notifications
You must be signed in to change notification settings - Fork 9.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Setup.sh does not work with ubuntu 22.04 and node v18.16.0 #786
Comments
Updated error message from that step is:
|
Try removing the As for the lines
Those mean that something is incorrect with your network settings. I see that it tried to reach the endpoint via IPv6, do you have your network setup for that correctly? |
Just pulled latest, and I've got it up and working, and I did get the same error but I just let it continue and it pulled the correct node version:
I think your network configuration error is preventing you from pulling the correct version. |
I thought I'll piggyback on this bug report as it seems to be related. I have also been unable to run the setup.sh on Ubuntu 22.04, Even after removing <19.0.0 from the package.json file. I get this error by the setup script:
file:///home/ubuntu/AgentGPT/cli/node_modules/inquirer/lib/prompts/editor.js:78 SyntaxError: Unexpected token '?' |
Node.js Version Issue The EBADENGINE warning is due to the current Node.js version (v19.9.0) being higher than what's specified in the package.json file (>=18.0.0 <19.0.0). This warning shouldn't prevent the setup script from running, but it might cause compatibility issues. If you want to use Node.js v19.9.0, you can remove the <19.0.0 from the engine field in the package.json file. However, be aware that this might cause compatibility issues if the code relies on features or behaviors specific to Node.js v18. Network Issue 🌐 The ETIMEDOUT error suggests a network connectivity issue. This could be caused by a variety of factors, such as a slow network connection, a firewall blocking connections, or a misconfigured proxy. Here are a few things you can try:
Regarding the SyntaxError: Unexpected token '?', this error occurs when your version of Node.js does not support the optional chaining (?.) operator. It's likely that the installed Node.js version is older than the version that introduced this feature (Node.js v14.0.0). You could update your Node.js to a newer version to resolve this issue. You can use a version management tool like nvm (Node Version Manager) to easily switch between different Node.js versions. Here's how you can install it: curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh | bash Once installed, you can install a new version of Node.js and use it: nvm install 19
nvm use 19 I hope this helps! Please let me know if you have further questions or issues. 👍 |
Hello, @christopher-hacker Were you able to come and try these solutions out!!?? Please do and let me know if they worked for you, otherwise, I will be closing due to inactivity. If this problem still exists please feel free to reopen the ticket!!! |
Hi @christopher-hacker, @jasangill1 I think I have figure out the root cause. PR created here #1551. and hope more people will be able to enjoy this awesome project! thanks team! |
Please check that this issue hasn't been reported before.
Expected Behavior
When running ./setup.sh, the setup should run successfully
Current behaviour
When I run ./setup.sh, npm ci fails.
Steps to reproduce
git clone https://github.com/reworkd/AgentGPT.git && cd AgentGPT
./setup.sh
I am using Ubuntu 22.04.1 LTS, and my node version is v18.16.0
The output of build step 7/15: RUN npm ci is:
Possible solution
No response
Which Operating Systems are you using?
Acknowledgements
The text was updated successfully, but these errors were encountered: