fix ERR_SOCKET_TIMEOUT by matching npm version #1551
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR should fix #786
I encounter the same problem from #786, and I am using Mac with docker and local node version v18.20.2. I keep seeing
npm WARN EBADENGINE current: { node: 'v19.9.0', npm: '9.6.3' }
which I knew was not the one I have config on local.The root cause seem to be from node version definition here
https://github.com/antigenius0910/AgentGPT/blob/main/next/package.json#L6
which conflict with frontend docker file base image definition
https://github.com/antigenius0910/AgentGPT/blob/main/next/Dockerfile#L2
this combination will produce below error
simply change base image from
node:19-alpine
tonode:18-alpine
and ran./setup.sh
once again and everything start up correctly this time