Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit a881ca5

Browse filesBrowse files
Correctly set NODE_PATH when starting OutOfProcessNodeInstance
1 parent 3fc19ea commit a881ca5
Copy full SHA for a881ca5

File tree

Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Open diff view settings
Collapse file

‎src/Microsoft.AspNetCore.NodeServices/HostingModels/OutOfProcessNodeInstance.cs‎

Copy file name to clipboardExpand all lines: src/Microsoft.AspNetCore.NodeServices/HostingModels/OutOfProcessNodeInstance.cs
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,9 @@ protected async Task EnsureReady()
9191

9292
var nodePathValue = existingNodePath + Path.Combine(_projectPath, "node_modules");
9393
#if NET451
94-
startInfo.EnvironmentVariables.Add("NODE_PATH", nodePathValue);
94+
startInfo.EnvironmentVariables["NODE_PATH"] = nodePathValue;
9595
#else
96-
startInfo.Environment.Add("NODE_PATH", nodePathValue);
96+
startInfo.Environment["NODE_PATH"] = nodePathValue;
9797
#endif
9898

9999
_nodeProcess = Process.Start(startInfo);

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.