-
Notifications
You must be signed in to change notification settings - Fork 5
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
/usr/bin/env: ‘node’: No such file or directory #101
Comments
Hi James, |
@mbolotov Yes exactly, here is the output in PHPStorm's test window (had to censor the project name as its confidential):
|
can you also provide the command for a single test which is working okay? |
Single tests aren't working OK and are showing the same error |
It's a bit hard to reproduce the problem as I'm on Windows mostly of the time.
Also, you could try creating a symlink as described here: https://stackoverflow.com/questions/26320901/cannot-install-nodejs-usr-bin-env-node-no-such-file-or-directory |
Yes that command works in the terminal as normal and I've added the symlink and it does not fix the issue |
this might be related to the user under you run PHPStorm itself. |
Yes it is the same user, installed via Jetbrains Toolbox |
I have the same issue, also using nvm and linux. UPDATE: I worked around the problem by installing a new version of node using Snap Store (I'm on Ubuntu). |
This is due to the fact that from where PHPStorm/Webstorm is started, the correct terminal config / env vars are not present. When starting PHPStorm/Webstorm from the terminal it probably works. |
When I run Cypress inside of PHPStorm to run all tests inside of a directory, I get:
Node is definitely present, as cypress runs fine normally in the terminal. I've checked the run configuration and it all points to the correct Node paths...
Any ideas what else I can check here?
I'm running PHPStorm 2022.2 on PopOS 22.04
The text was updated successfully, but these errors were encountered: