Back

Problems with updating appwrite CLI

  • 0
  • Self Hosted
  • Tools
PromILLEpapst
2 Feb, 2024, 11:20

Hi guys. I want to update my CLI version to 4.2.0 from 2.0.2 on my ubuntu docker. Is it the correct way to uninstall the CLI with rm -f /usr/local/bin/appwrite | bash

and install it afterwards with curl -sL https://appwrite.io/cli/install.sh | bash Is there a better solution?

Also I get the following error when "updating" the described way

TypeScript
npm WARN notsup Not compatible with your version of node/npm: commander@9.5.0
npm WARN notsup Unsupported engine for inquirer@8.2.6: wanted: {"node":">=12.0.0"} (current: {"node":"10.19.0","npm":"6.14.4"})
npm WARN notsup Not compatible with your version of node/npm: inquirer@8.2.6```

How can I fix that? Thanks in advance 🙂
TL;DR
Developer wants to update their appwrite CLI version from 2.0.2 to 4.2.0 on Ubuntu Docker. They are unsure if uninstalling with `rm -f /usr/local/bin/appwrite | bash` and installing with `curl -sL https://appwrite.io/cli/install.sh | bash` is the correct way. They are also getting npm WARN messages about unsupported engines. Possible Solution: Yes, uninstalling and installing with the mentioned commands is the correct way. To fix the npm WARN messages, they need to update their Node.js version to a compatible version (either 12.20.0
PromILLEpapst
2 Feb, 2024, 11:32

Guess I have to update the docker on my server (?) - Any guides you would suggest?

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more