gpt4 book ai didi

node.js - 术语 'node.exe' 未被识别为 cmdlet、函数、脚本文件或可运行程序的名称

转载 作者:行者123 更新时间:2023-12-05 00:46:23 31 4
gpt4 key购买 nike

我在尝试创建 Angular 项目时遇到错误。这是我第一次安装node.js,所有测试都成功了。

PS D:\ASP.NET Core & Angular\AngularAPI> ng new Angular7
& : The term 'node.exe' 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 C:\Users\Nahian\AppData\Roaming\npm\ng.ps1:15 char:5
+ & "node$exe" "$basedir/node_modules/@angular/cli/bin/ng" $args
+ ~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (node.exe:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException

环境变量也是按照说明设置的

enter image description here

谁能告诉我我错过了什么?

编辑:

我已经安装了 node.js 和 angular

enter image description here

最佳答案

我认为您缺少 NodeJs 的 path。尝试添加环境变量

的路径

关于node.js - 术语 'node.exe' 未被识别为 cmdlet、函数、脚本文件或可运行程序的名称,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60996722/

31 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com