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] Installing components doesn't work as per docs #137

Open
codechefmarc opened this issue Nov 8, 2024 · 0 comments
Open

[BUG] Installing components doesn't work as per docs #137

codechefmarc opened this issue Nov 8, 2024 · 0 comments
Labels

Comments

@codechefmarc
Copy link
Contributor

codechefmarc commented Nov 8, 2024

NOTE: This issue is the same as the one reported over on the Emulsify CLI repo (emulsify-ds/emulsify-cli#310) - not sure where it should go if the docs need to be updated, or if this is a bug with the CLI)

Describe the bug
On this page: Emulsify CLI Usage the documentation for how to install components says to use emulsify component list etc. I've found this gives an error:

/Users/username/.nvm/versions/node/v20.18.0/lib/node_modules/@emulsify/cli/dist/node_modules/commander/lib/command.js:1225
        throw new Error(executableMissing);
        ^

Error: 'emulsify-component' does not exist
 - if 'component' is not meant to be an executable command, remove description parameter from '.command()' and use '.description()' instead
 - if the default executable name is not suitable, use the executableFile option to supply a custom name or path
 - searched for local subcommand relative to directory '/Users/marcberger/.nvm/versions/node/v20.18.0/lib/node_modules/@emulsify/cli/dist'
    at ChildProcess.<anonymous> (/Users/marcberger/.nvm/versions/node/v20.18.0/lib/node_modules/@emulsify/cli/dist/node_modules/commander/lib/command.js:1225:15)
    at ChildProcess.emit (node:events:519:28)
    at ChildProcess._handle.onexit (node:internal/child_process:292:12)
    at onErrorNT (node:internal/child_process:484:16)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21)

Node.js v20.18.0

If I use emulsify list then I get a list of components. It also works to install via emulsify install --all whereas emulsify component install --all does not, I get the same error as above.

This is with emulsify v 1.11.3

To Reproduce
Steps to reproduce the behavior:

  1. Install emulsify with drush emulsify themename
  2. If not already done, install emulsify CLI - npm i -g @emulsify/cli
  3. Go into the new theme directory and run emulsify system install emulsify-ui-kit
  4. Now run emulsify component list or emulsify component install --all
  5. See error

Expected behavior
I was able to get this to work by running emulsify list and emulsify install --all so, not sure if the docs just need to be updated or if the CLI should support both commands

Desktop (please complete the following information):

  • OS: macOS Sonoma 14.7
  • Browser N/A
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant