Get this error in Windows:
PS C:\Users\Xiaomi> appwrite -v pkg/prelude/bootstrap.js:1740 throw error; ^
Error: Cannot find module 'C:\snapshot\sdk-for-cli\node_modules\axios\dist\node\axios.cjs'
- If you want to compile the package/file into executable, please pay attention to compilation warnings and specify a literal in 'require' call. 2) If you don't want to compile the package/file into executable and want to 'require' it from filesystem (likely plugin), specify an absolute path in 'require' call using process.cwd() or process.execPath. at createEsmNotFoundErr (node:internal/modules/cjs/loader:960:15) at finalizeEsmResolution (node:internal/modules/cjs/loader:953:15) at resolveExports (node:internal/modules/cjs/loader:482:14) at Function.Module._findPath (node:internal/modules/cjs/loader:522:31) at Function.Module._resolveFilename (node:internal/modules/cjs/loader:919:27) at Function._resolveFilename (pkg/prelude/bootstrap.js:1819:46) at Function.Module._load (node:internal/modules/cjs/loader:778:27) at Module.require (node:internal/modules/cjs/loader:1005:19) at Module.require (pkg/prelude/bootstrap.js:1719:31) at require (node:internal/modules/cjs/helpers:102:18) { code: 'MODULE_NOT_FOUND', path: 'C:snapshotsdk-for-clinode_modulesaxiospackage.json', pkg: true }
Strange, i got the same on ubuntu: https://discord.com/channels/564160730845151244/1149602051999940668
Did you install using npm install -g appwrite-cli?
Yes, i called it
try running npx appwrite -v
Oh, that's works:))
Yea, don't know what the issue is, but you can use that untill they fix the bug 🙂
Thank you, Osman!<:appwritepeepo:902865250427215882>
[SOLVED] Cannot use appwrite CLI
Whats your node version btw? @polbuhanky
npx appwrite -v 4.0.0
Or did you mean another version?
when you run node -v
v18.13.0v
Okay, thanks 👍
Recommended threads
- HTTP POST to function returning "No Appw...
Hi everyone, I’m running into an issue with my self-hosted Appwrite instance. I’ve set up my environment variables (APPWRITE_FUNCTION_PROJECT_ID, APPWRITE_FUNC...
- Can't add dart 3.5 runtime
Modified the `.env` to enable dart 3.5 runtime on my self-hosted instance but still can't find the runtime when creating a new function. I manually pulled the i...
- How to verify an user using AppWrite Fun...
I have seen similar questions but none whose solutions serve me. I have a function to verify a user with their secret and their id: https://blahblah.appwrite.gl...