Suj*_*tYT 7 node.js visual-studio-code
在我的 VS Code 终端中运行 node 时出现此错误,除了我尝试在 CMD 中运行相同的东西并且它在那里工作但不在 VS Code 终端中:

node: The term 'node' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ node
+ ~~~~
+ CategoryInfo : ObjectNotFound: (node:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
Run Code Online (Sandbox Code Playgroud)
小智 9
尝试关闭然后重新打开 VS Code。
如果您在 VS Code 打开时安装了节点,则对 PATH 的更改尚不可见。(确保在安装节点时选择了添加到 PATH 选项...如果不确定将其添加到 PATH)
| 归档时间: |
|
| 查看次数: |
11036 次 |
| 最近记录: |