Skip to content

Commit 63fd977

Browse files
authored
[wasm] Use npm from emsdk when running sanitize.py (#66533)
The issue manifests are build errors: `UnhandledPromiseRejectionWarning: Error: Cannot find module 'is-fullwidth-code-point'` .. eventually failing the build: `*** No rule to make target 'src/cjs/runtime.cjs.iffe.js', needed by 'dotnet.js'`
1 parent 5235ea5 commit 63fd977

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mono/wasm/sanitize.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def rewrite_package_json(path):
3838

3939
# Add the local node bin directory to the path so that
4040
# npm can find it when doing the updating or pruning
41-
os.environ["PATH"] += os.pathsep + os.path.join(node_paths[0], "bin")
41+
os.environ["PATH"] = os.path.join(node_paths[0], "bin") + os.pathsep + os.environ["PATH"]
4242

4343
def update_npm(path):
4444
try:

0 commit comments

Comments
 (0)