我在IIS上托管我的asp.net核心时收到以下错误。在本地它工作正常:
Win32Exception: The system cannot find the file specified
System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
InvalidOperationException: Failed to start Node process. To resolve this:.
[1] Ensure that Node.js is installed and can be found in one of the PATH directories. Current PATH enviroment variable is: C:\Program Files (x86)\PHP\v5.6;C:\Windows\system32\inetsrv;C:\Program Files (x86)\PHP\v5.6;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;S:\Program Files (x86)\Microsoft SQL Server\130\Tools\Binn\;S:\Program Files\Microsoft SQL Server\130\Tools\Binn\;S:\Program Files (x86)\Microsoft SQL Server\130\DTS\Binn\;S:\Program Files\Microsoft SQL Server\130\DTS\Binn\;S:\Program Files\Microsoft SQL Server\Client SDK\ODBC\130\Tools\Binn\;S:\Program Files (x86)\Microsoft SQL Server\Client SDK\ODBC\130\Tools\Binn\;S:\Program Files (x86)\Microsoft SQL Server\130\Tools\Binn\ManagementStudio\;C:\Program Files\dotnet\;C:\Program Files\Microsoft\Web Platform Installer\;; Make sure the Node executable is in one of those directories, or update your PATH.
[2] See the InnerException for further details of the cause. Microsoft.AspNetCore.NodeServices.HostingModels.OutOfProcessNodeInstance.LaunchNodeProcess(ProcessStartInfo startInfo)
Stack Query Cookies Headers Win32Exception: The system cannot find the file specified System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo) System.Diagnostics.Process.Start() System.Diagnostics.Process.Start(ProcessStartInfo startInfo) Microsoft.AspNetCore.NodeServices.HostingModels.OutOfProcessNodeInstance.LaunchNodeProcess(ProcessStartInfo startInfo)
有人能给我一些提示吗?
答案 0 :(得分:0)
将网站发布到另一个端口后,它运行得很漂亮
答案 1 :(得分:0)
添加用户npm路径。例如:C:\ Users \ User \ AppData \ Roaming \ npm(Win 10)。