Skip to content

Commit

Permalink
fix: somehow could not find path in process.env.PATH. Hopefully this …
Browse files Browse the repository at this point in the history
…will fix the build issue for Windows
  • Loading branch information
jortbmd committed Mar 28, 2023
1 parent 0e87512 commit d5d95fe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/buildTools/installTools.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ export async function xpmInstall(
env['XPACKS_SYSTEM_FOLDER'] = pathToSaveTo;
env['XPACKS_REPO_FOLDER'] = pathToSaveTo;
env['npm_config_yes'] = `${true}`;
env['PATH'] = env['PATH']
.split(pathSeparator)
env['PATH'] = env?.['PATH']
?.split(pathSeparator)
.filter((pathValue) => (!pathValue.includes('node') && !pathValue.includes('nvm')))
.join(pathSeparator);
env['PATH'] = `${nodePath}${pathSeparator}${env.PATH}`;
Expand Down

0 comments on commit d5d95fe

Please sign in to comment.