mirror of
https://github.com/aspnet/JavaScriptServices.git
synced 2025-12-22 17:47:53 +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");
|
||||
#if NET451
|
||||
startInfo.EnvironmentVariables.Add("NODE_PATH", nodePathValue);
|
||||
startInfo.EnvironmentVariables["NODE_PATH"] = nodePathValue;
|
||||
#else
|
||||
startInfo.Environment.Add("NODE_PATH", nodePathValue);
|
||||
startInfo.Environment["NODE_PATH"] = nodePathValue;
|
||||
#endif
|
||||
|
||||
_nodeProcess = Process.Start(startInfo);
|
||||
|
||||
Reference in New Issue
Block a user