Error: spawn docker-compose ENOENT #756
-
Hello all! I have been trying to deploy with ./setup.sh --docker and this error was raised: node:events:491 Error: spawn docker-compose ENOENT Node.js v18.16.0 Here is my environment: Please help! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
OK... I resolved this error with the following code: sudo apt install docker-compose Then cd into next folder and remove node_modules folder in case there's any corrupted modules; and reinstall: Then update docker-compose and docker. The agent is now up and running. If anyone encountered something similar, hope this may help. |
Beta Was this translation helpful? Give feedback.
-
Same error. Node: 19.9.0 .bashrc has the line Still, the error persists. And installing Compose v1 is not an appealing option. |
Beta Was this translation helpful? Give feedback.
OK... I resolved this error with the following code:
sudo apt install docker-compose
Then cd into next folder and remove node_modules folder in case there's any corrupted modules; and reinstall:
cd next
sudo rm -r node_modules
npm install
Then update docker-compose and docker.
sudo apt install --upgrade docker-compose
sudo apt install --upgrade docker
The agent is now up and running. If anyone encountered something similar, hope this may help.