我有一个新的Asp.NET Core Web / React应用程序。
当我尝试运行它时,出现错误:
处理请求时发生未处理的异常。 AggregateException:发生一个或多个错误。 (一个或多个错误 发生。 (无法启动“ npm”。要解决此问题:。
[1]确保已安装“ npm”,并且可以在PATH之一中找到它 目录。
我设置了一个PATH变量:
C:\ Program Files \ nodejs
在此文件夹中是node.exe
我需要在项目中安装一些东西吗?
自从VS Web应用程序模板创建项目以来,我没有对该项目进行任何其他更改。我只希望它运行...
完整路径错误列表:
当前PATH环境变量为:C:\ Program Files \ Android \ jdk \ microsoft_dist_openjdk_1.8.0.9 \ bin; C:\ Program 文件\ Microsoft MPI \ Bin \; C:\ Program Files(x86)\ Intel \ iCLS 客户端\; C:\ Program Files \ Intel \ iCLS 客户端\; C:\ WINDOWS \ system32; C:\ WINDOWS; C:\ WINDOWS \ System32 \ Wbem; C:\ WINDOWS \ System32 \ WindowsPowerShell \ v1.0 \; C:\ Program 文件(x86)\ Intel \ Intel(R)管理引擎组件\ DAL; C:\ Program 文件\英特尔\英特尔(R)管理引擎组件\ DAL; C:\ Program Files (x86)\ Intel \ Intel(R)管理引擎组件\ IPT; C:\ Program 文件\英特尔\英特尔(R)管理引擎组件\ IPT; C:\ Program文件 (x86)\ Microsoft SQL Server \ Client SDK \ ODBC \ 130 \ Tools \ Binn \; C:\ Program 文件(x86)\ Microsoft SQL Server \ 130 \ Tools \ Binn \; C:\ Program Files (x86)\ Microsoft SQL Server \ 130 \ DTS \ Binn \; C:\ Program文件 (x86)\ Microsoft SQL Server \ 130 \ Tools \ Binn \ ManagementStudio \; C:\ Program 文件\ Microsoft SQL Server \ 130 \ Tools \ Binn \; C:\ Program Files \ TortoiseHg \; C:\ Program Files(x86)\ PKWARE \ pkzipc; C:\ Program Files \ Microsoft \ Web平台安装程序\; C:\ Program Files \ dotnet \; C:\ Program Files \ 7-Zip; C:\ Program Files \ OpenVPN \ bin; C:\ Program Files \ nodejs \; C:\ Program Files \ Mercurial \; C:\ Program Files \ Intel \ WiFi \ bin \; C:\ Program Files \ Common Files \ Intel \ WirelessCommon \; C:\ Program Files \ 010 编辑器; C:\ Program Files(x86)\ Microsoft模拟器 Manager \ 1.0 \; C:\ Scripts; C:\ Program Files \ Microsoft SQL Server \ Client SDK \ ODBC \ 130 \ Tools \ Binn \; C:\ Program Files \ Microsoft SQL Server \ 130 \ DTS \ Binn \; C:\ Program档案 (x86)\ GtkSharp \ 2.12 \ bin; C:\ ProgramData \ chocolatey \ bin; C:\ Program 文件\ Java \ jdk1.8.0_162 \ bin; C:\ clojure-clr-1.8.0-发行版4.0 \发行版 4.0 \ clojure; C:\ Program Files \ PuTTY \; C:\ Program Files(x86)\ Microsoft SQL Server \ 140 \ Tools \ Binn \; C:\ Program Files \ Microsoft SQL Server \ 140 \ Tools \ Binn \; C:\ Program Files(x86)\ Microsoft SQL Server \ 140 \ DTS \ Binn \; C:\ Program Files \ Microsoft SQL Server \ 140 \ DTS \ Binn \; C:\ Program Files \ Git \ cmd; C:\ Program Files (x86)\ Windows套件\ 10 \ Windows性能 工具包\; C:\ Users \ stuarts.cargo \ bin; C:\ Program Files(x86)\ Elm Platform \ 0.18 \ bin; C:\ Users \ stuarts \ AppData \ Local \ Programs \ Python \ Python35 \ Scripts \; C:\ Users \ stuarts \ AppData \ Local \ Programs \ Python \ Python35 \; C:\ Users \ stuarts \ AppData \ Local \ Microsoft \ WindowsApps; C:\ Nuget \ nuget.exe; C:\ utils; C:\ Users \ stuarts \ AppData \ Roaming \ Python35 \ Scripts; C:\ Program Files \ 7-Zip; C:\ Users \ stuarts \ AppData \ Roaming \ npm; C:\ Program Files \ Intel \ WiFi \ bin \; C:\ Program Files \ Common 文件\ Intel \ WirelessCommon \; C:\ Users \ stuarts \ AppData \ Local \ Programs \ Fiddler; C:\ Scripts; C:\ Nuget; C:\ Program 文件\ Microsoft VS 代码\ bin; C:\ Users \ stuarts.lein \ bin; C:\ Users \ stuarts \ AppData \ Local \ atom \ bin; C:\ clojure-clr-1.8.0-发布 4.0 \发布4.0; C:\ Users \ stuarts.dotnet \ tools; C:\ Program Files(x86)\ Microsoft SDKs \ Windows \ v10.0A \ bin \ NETFX 4.7.2 工具; C:\ Windows \ Microsoft.NET \ Framework \ v4.0.30319; C:\ Program Files \ nodejs;
您可以看到节点是最后一个...