我的VS代码扩展代码Runner不起作用
嗨,我的问题是,在我的Visual Studio代码中,我的代码Runner扩展名无法提供任何输出。我查看了一堆教程,并完成了所有工作,研究,下载node.js,并将文件保存为JavaScript文件并验证路径。
我输入了“ console.log(“ hello”) 它打印出来 [运行]节点“ C:\ Users \ name \ untitled-1.js [完成]用代码= 0在0.202秒内退出
,而无需
请帮助IDK IDK
Hi my issue is that in my visual studio code, my code runner extension doesn't provide any output. I've looked at a bunch of tutorials and have done everything, research, download node.js,and saves the file as a javascript file and verify paths.
I entered " console.log("Hello")
Its prints this out
[Running] node "c:\Users\NAME\Untitled-1.js
[Done] exited with code=0 in 0.202 seconds
And nothing
Please help idk what I'm doing wrong ????
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
看起来您还没有保存文件。
尝试保存文件,然后使用代码跑步者运行。
提示:您可以启用
在运行之前保存
设置,以便在运行文件之前每次保存。Looks like you haven't saved the file.
Try saving the file and then run with Code Runner.
Tip: You can enable
Save before Run
settings so that it gets saved every time before running the file.在我的情况下,解决方案是取消选中“显示执行消息”复选框中的“运行代码配置”中的复选框。
设置
结果
in my case solution was to uncheck "Show Execution Message" check box in Run Code configuration.
setting
result
我建议您在命令提示符窗口中运行
node -v
和npm -v
,以查看是否已安装了输出
,并且如果有问题,可能来自您的路径(Windows搜索中的“编辑系统环境变量”),也可能没有安装NPM或节点。
I recommend you to run
node -v
andnpm -v
in command prompt window to see if you have them installedthe output must be like this
and if there is a problem it might be from your paths ("Edit system environment variables" in windows search) or you haven't installed npm or node.
转到扩展页面>设置图标(接近卸载按钮)>扩展设置>在终端中启用称为
的选项。
Go to the Extension page > Settings icon (Near uninstall button) > Extension settings > Enable the option called
Run In Terminal
.