Back

Getting "MODULE_NOT_FOUND" error after installing appwrite_cli

  • 0
  • Tools
james54
22 Sep, 2023, 15:09
TL;DR
User is getting a "MODULE_NOT_FOUND" error after installing appwrite_cli. The issue seems to be solved by using "npx appwrite -v" instead of "appwrite -v". User has installed the appwrite_cli using both the script and npm, and is getting the error with both methods. User is asked to try upgrading the appwrite_cli version.
Binyamin
22 Sep, 2023, 15:11

There was some error with version 3.0.0 Can you try to upgrade it?

Binyamin
22 Sep, 2023, 15:11

By reinstalling?

TypeScript
npm install -g appwrite-cli
james54
22 Sep, 2023, 15:12

I have just installed it like 10 mins ago

Binyamin
22 Sep, 2023, 15:12

Using NPM or other methods?

james54
22 Sep, 2023, 15:12

both methods

Binyamin
22 Sep, 2023, 15:13

Like also brew?

james54
22 Sep, 2023, 15:14

installed it using "script" & "npm"

james54
22 Sep, 2023, 15:14

both method is giving error

Binyamin
22 Sep, 2023, 15:14

Got it

Binyamin
22 Sep, 2023, 15:14

How've you installed it using script?

Binyamin
22 Sep, 2023, 15:14

Meaning what OS you have?

james54
22 Sep, 2023, 15:15

Archlinux

Binyamin
22 Sep, 2023, 15:15

Good

james54
22 Sep, 2023, 15:15

there is a script in documentation

james54
22 Sep, 2023, 15:16

curl -sL https://appwrite.io/cli/install.sh | bash

this one

Binyamin
22 Sep, 2023, 15:16

πŸ‘

Binyamin
22 Sep, 2023, 15:16

Run

TypeScript
which appwrite
Binyamin
22 Sep, 2023, 15:16

To check which one is running and share the results

james54
22 Sep, 2023, 15:16

/usr/local/bin/appwrite

Binyamin
22 Sep, 2023, 15:24

What version of node you have?

james54
22 Sep, 2023, 15:24

Thanks for the response but i searched through support and found that it is a bug and it is working when i use "npx appwrite -v" instead of "appwrite -v"

Binyamin
22 Sep, 2023, 15:24

Output of

TypeScript
node --version
npm --version
Binyamin
22 Sep, 2023, 15:24

Okay πŸ‘

james54
22 Sep, 2023, 15:25

Thanks for response πŸ‘

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