Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 Bug Report: Manual install doesn't work #95

Closed
2 tasks done
stnguyen90 opened this issue Sep 8, 2023 · 3 comments
Closed
2 tasks done

🐛 Bug Report: Manual install doesn't work #95

stnguyen90 opened this issue Sep 8, 2023 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@stnguyen90
Copy link
Contributor

👟 Reproduction steps

  1. Manually install the CLI
  2. Run appwrite -v

One line script to test in a container:

docker run --rm -it ubuntu sh -c "apt update && apt install -y curl && curl -sL https://appwrite.io/cli/install.sh | bash && appwrite -v"

👍 Expected behavior

it works

👎 Actual Behavior

Error:

pkg/prelude/bootstrap.js:1740
      throw error;
      ^

Error: Cannot find module '/snapshot/sdk-for-cli/node_modules/axios/dist/node/axios.cjs'
1) 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: '/snapshot/sdk-for-cli/node_modules/axios/package.json',
  pkg: true
}

🎲 Appwrite version

Version 1.4.x

💻 Operating system

Linux

🧱 Your Environment

Appwrite CLI version 4.0.0.

👀 Have you spent some time to check if this issue has been raised before?

  • I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

@stnguyen90 stnguyen90 added the bug Something isn't working label Sep 8, 2023
@Shiba-Kar
Copy link

Shiba-Kar commented Sep 13, 2023

same above error !!
> curl -sL https://appwrite.io/cli/install.sh | bash
> appwrite

this works fine !!
brew tap appwrite/sdk-for-cli https://github.com/appwrite/sdk-for-cli brew update brew install --HEAD appwrite

@stnguyen90 stnguyen90 changed the title 🐛 Bug Report: Manual install doens't work 🐛 Bug Report: Manual install doesn't work Sep 20, 2023
@JimWuerch
Copy link

Any workarounds for getting this working on linux?

@Weav3r
Copy link

Weav3r commented Nov 2, 2023

@JimWuerch curl the install file from this repo. checkout issue #100
Nvm, though it installs correctly, it throws errors. Ended up installing the npm package temporarily until the issue is fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants