When opening WebStorm with IL2 via the UI on MacOS Receive "Error running the Salesforce CLI \n env: node: No such file or directory" message.

Issue #2143 resolved
Brett Nelson created an issue

Whens starting WebStorm via Spotlight or the launchpad a notification with the

The message “Error running the Salesforce CLI env: node: No such file or directory”

It also displays a warning “WebStorm has failed to load the environment from '/bin/zsh'. Integration with tools that rely on environment variables may work incorrectly.”

Opening via the shell does not have this same issue.

I’ve included logs from since I last restarted.

I’ve also created a ticket with JetBrains

Opening WebStorm shows error: webstorm has failed to load the environment from '/bin/zsh' integration with tools that rely on environment variables may work incorrectly : WEB-56359 (jetbrains.com)

Comments (4)

  1. Scott Wells repo owner

    I'm not sure why it's failing to load the environment, but that's the root cause of this behavior. Issue #2115 is closely related but not quite the same. The issue you opened with JetBrains is likely going to be bear more fruit since fundamentally IC2 launches the Salesforce CLI using the environment with which it was launched (plus a few additional env vars to control the behavior of the CLI), and that includes the execution path. If the execution path doesn't include node, the CLI (which is inherently a Node app) will not work.

    I've added myself as a watched on the JetBrains issue as I'm curious about why that's failing.

  2. Brett Nelson reporter

    Yeah, I’m thinking this is more of a JetBrains issue but thought I would open an issue here in case there was a workaround that might already be known.

  3. Scott Wells repo owner

    Brett, it looks like the JetBrains issue has good traction now. I'm going to resolve this here but am keeping an eye on the activity there just so I know how it shakes out. I'm curious as to what's going on myself.

  4. Log in to comment