question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

env: node: No such file or directory

See original GitHub issue

I installed the plugin in a create-react-app-ts (https://github.com/wmonk/create-react-app-typescript) generated product; at first, nothing happened, there was a checkmark in the bottom row but the output was empty. Restarting VS Code and manuallly starting the Jest test runner (using the command runner) caused the error to appear in the output terminal.

I had NVM installed with a version set to the LTS version. Then I tried installing the latest version of Node via nvm, also setting as default. Then I installed the latest version of Node globally, using the installer, and restarting VS Code every time. All no luck.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:29 (3 by maintainers)

github_iconTop GitHub Comments

43reactions
jnnnnncommented, Mar 6, 2019

If you have installed node using nvm, it won’t be in the place this extension expects it to be (/usr/bin/env).

Workaround

You can make sure it is in the relative path by launching vscode in the root directory of your project:

cd ~/my-project
code .
24reactions
adityavikasdcommented, Jun 11, 2020

If this is happening to you on a Mac, with iTerm and Zsh. I had to set the Explorer Kind (terminal application to use) in VSCode to external Screen Shot 2020-06-11 at 10 33 42 AM

Also, make sure this is not overridden at the Workspace level settings.

Read more comments on GitHub >

github_iconTop Results From Across the Web

env: node: No such file or directory in mac - Stack Overflow
I get this error running npm start through PyCharm on Mac. For that the answer is to start PyCharm ...
Read more >
how to avoid env: node: No such file or directory #1702 - GitHub
What steps did you perform? I commented the loading nvm script in shell to make my terminal loads faster, then load nvm whenever...
Read more >
env: node: No such file or directory when using nvm - YouTrack
Found a temporary workaround: just manually append $PATH with node from nvm in debug configuration environment variables. While that works, it is of...
Read more >
Fixing "env: node : No such file or directory" on mac for an ...
If you install an npm package using yarn and you get this error it means that the package author is using windows line...
Read more >
env: node: No such file or directory - Laracasts
Hi,. When running the command: npm install. I get the error: env: node: No such file or directory. Could someone help me please?...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found