mirror of
https://github.com/aspnet/JavaScriptServices.git
synced 2025-12-23 01:58:29 +00:00
Correctly set NODE_PATH when starting OutOfProcessNodeInstance
This commit is contained in:
@@ -91,9 +91,9 @@ namespace Microsoft.AspNetCore.NodeServices
|
|||||||
|
|
||||||
var nodePathValue = existingNodePath + Path.Combine(_projectPath, "node_modules");
|
var nodePathValue = existingNodePath + Path.Combine(_projectPath, "node_modules");
|
||||||
#if NET451
|
#if NET451
|
||||||
startInfo.EnvironmentVariables.Add("NODE_PATH", nodePathValue);
|
startInfo.EnvironmentVariables["NODE_PATH"] = nodePathValue;
|
||||||
#else
|
#else
|
||||||
startInfo.Environment.Add("NODE_PATH", nodePathValue);
|
startInfo.Environment["NODE_PATH"] = nodePathValue;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
_nodeProcess = Process.Start(startInfo);
|
_nodeProcess = Process.Start(startInfo);
|
||||||
|
|||||||
Reference in New Issue
Block a user