fleek-platform / cli

The Fleek-platform CLI provides a unified command line interface to Fleek Services
MIT License
0 stars 0 forks source link

Missing en.json File Error When Running Fleek CLI #47

Open DruxAMB opened 1 week ago

DruxAMB commented 1 week ago

Bug Description:

After installing the Fleek CLI globally using npm, I attempted to check the version using the fleek version command, but I encountered an error related to a missing en.json file.

Error Message:

Error: ENOENT: no such file or directory, open 'C:\Users\HP Elitebook Mt44\AppData\Roaming\npm\node_modules@fleek-platform\cli\dist\locales\en.json' at readFileSync (node:fs:448:20) at loadJSONFromPackageRoot (C:\Users\HP Elitebook Mt44\AppData\Roaming\npm\node_modules@fleek-platform\cli\dist\bundle.js:105957:53)

Steps to Reproduce:

  1. Run npm install -g @fleek-platform/cli
  2. Run fleek version
  3. See the error

Expected Behavior:

The command fleek version should display the version number without throwing an error.

System Information:

Additional Context:

I also received warnings about deprecated packages during installation: npm WARN deprecated inflight@1.0.6: This module is not supported, and leaks memory. npm WARN deprecated glob@8.1.0: Glob versions prior to v9 are no longer supported.

Please let me know if any additional information is needed.

KanishkKhurana commented 3 days ago

Since you are running the CLI on a windows machine, could you specify which command line tool was used to install the CLI ? Please also try running powershell as administrator and then installing or using WSL

DruxAMB commented 2 days ago

I used the command provided on fleek CLI, like fleek version, fleek. All commands starting with fleek throw the same error. I have also tried running as administrator but throws the same error message. That means the command line only works in a Linux environment?

On Thu, Sep 26, 2024 at 9:57 AM Kanishk Khurana @.***> wrote:

Since you are running the CLI on a windows machine, could you specify which command line tool was used to install the CLI ? Please also try running powershell as administrator and then installing or using WSL

— Reply to this email directly, view it on GitHub https://github.com/fleek-platform/cli/issues/47#issuecomment-2376359357, or unsubscribe https://github.com/notifications/unsubscribe-auth/A7FAUH4ADGDVVUPBUSJIQBDZYPEADAVCNFSM6AAAAABOUE344GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNZWGM2TSMZVG4 . You are receiving this because you authored the thread.Message ID: @.***>