最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Getting "'node' is not recognized" error when running JavaScript with Code Runner in VS Code -

programmeradmin5浏览0评论

After I installed Code Runner in VS Code then used it to run my JS code, I'm getting this runtime error:

'node' is not recognized as an internal or external mand, operable program or batch file.

What does that mean?

After I installed Code Runner in VS Code then used it to run my JS code, I'm getting this runtime error:

'node' is not recognized as an internal or external mand, operable program or batch file.

What does that mean?

Share Improve this question edited Jan 4, 2021 at 13:39 Gino Mempin 29.8k31 gold badges119 silver badges166 bronze badges asked Aug 3, 2018 at 3:21 Gunacelan MGunacelan M 3273 silver badges11 bronze badges 1
  • Maybe check stackoverflow./questions/23412938/… – Akrion Commented Aug 3, 2018 at 6:53
Add a ment  | 

3 Answers 3

Reset to default 2

What also helped me was (after installing node) going into VS settings, finding

code-runner.runInTerminal

and ticking it on.

The error message means you have not installed Node.js on your machine. Make sure you have installed the Node.js from https://nodejs/en/, and set the correct PATH environment variable.

With the error during installation of node js make sure the add path is checked before installation. When the installation is done restart the vs code. It should be fine.

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论