我尝试在VSCode中运行这段简单的JavaScript代码来学习,但是我一直收到这个错误提示:
[Running] node "/var/folders/xr/30nkhmxs7159fblbjtfj2jhw0000gn/T/tempCodeRunnerFile.javascript" /bin/sh: node: command not found
[Done] exited with code=127 in 0.014 seconds
我已经在网上搜索并尝试更改CodeRunner可执行文件路径映射,但似乎没有帮助。
谢谢!
[Running] node "/var/folders/xr/30nkhmxs7159fblbjtfj2jhw0000gn/T/tempCodeRunnerFile.javascript" /bin/sh: node: command not found
[Done] exited with code=127 in 0.014 seconds
我已经在网上搜索并尝试更改CodeRunner可执行文件路径映射,但似乎没有帮助。
谢谢!
let admin, name; // can declare two variables at once
name = "John";
admin = name;
alert( admin ); // "John"
node
。你能在终端中运行相同的命令吗? - Mark