【发布时间】:2022-02-03 03:43:09
【问题描述】:
PS C:\Users\DELL> node (OR) gcc --version (OR) g++ --version
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
- 节点
-
+ CategoryInfo : ObjectNotFound: (node:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException
由于发布答案禁令,我在这里写信希望它对社区有所帮助
其实我已经在windows 10上尝试了以下方法来解决这个问题~
- 系统还原
- Powershell 重启
- Powershell 文件替换(使用 Program files..etc 中的其他窗口系统文件)
- 故障排除后重启电脑
- 环境路径改变 但没有任何工作... 但最终在 Windows 11 升级后它自动解决了我的问题
我建议您安装某些东西(应用程序、软件等) 来自官方可信网站,请勿篡改系统文件 除非必要也避免使用破解版本和多个 .NET 除非必要,否则仅在同一系统上使用框架和安装程序 1 .NET VISUAL STUDIO 的安装程序在我的情况下最新我认为是 问题...!!
【问题讨论】:
-
在VSCode的PowerShell控制台输入
$env:path会输出什么?
标签: powershell visual-studio-code