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

Provide more info about installation failure #763

Closed
przemekrcloudity opened this issue Jan 10, 2024 · 1 comment · Fixed by #776
Closed

Provide more info about installation failure #763

przemekrcloudity opened this issue Jan 10, 2024 · 1 comment · Fixed by #776
Labels
enhancement New feature or request

Comments

@przemekrcloudity
Copy link

What

Provide more info about error that caused installation of plugin to fail

What is the current problem

Recently I tried to install plugin in cli using oclif library (salesforce/cli). I have encountered error

Installing plugin PLUGIN_NAME... failed
    Error: /home/myhome/.npm-packages/lib/node_modules/@salesforce/cli/node_modules/yarn/bin/yarn.js add PLUGIN_NAME --non-interactive 
    --mutex=file:/home/myHome/.local/share/sf/yarn.lock --preferred-cache-folder=/home/myHome/.cache/sf/yarn --check-files exited with code 1

This error does not provide any helpful text that would allow me to identify problem during installation.
Running command displayed by in above error resulted in:

/home/myHome/.npm-packages/lib/node_modules/@salesforce/cli/node_modules/yarn/bin/yarn.js add PLUGIN_NAME --non-interactive 
yarn add v1.22.21
info No lockfile found.
[1/4] Resolving packages...
[2/4] Fetching packages...
error @salesforce/sf-plugins-core@5.0.13: The engine "node" is incompatible with this module. Expected version ">=18.0.0". Got "16.16.0"
error Found incompatible module.
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.

This error makes it clear to understand what went wrong and what needs to be fixed

Copy link

git2gus bot commented Jan 10, 2024

This issue has been linked to a new work item: W-14792145

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants