diff --git a/scripts/build-platforms-generate.sh b/scripts/build-platforms-generate.sh index 14dbb7177..c6c77769a 100755 --- a/scripts/build-platforms-generate.sh +++ b/scripts/build-platforms-generate.sh @@ -131,7 +131,7 @@ cat << "EOF" - .\scripts\choco-install.ps1 - refreshenv - npm install --ignore-scripts - - $env:Path = "$(npm bin);" + $env:Path + - $env:Path = "$(npm root)\.bin;" + $env:Path - npm test -- --ci --coverage --shard="$CI_NODE_INDEX/$CI_NODE_TOTAL" --maxWorkers=50% artifacts: when: always @@ -159,7 +159,7 @@ cat << "EOF" - ./scripts/brew-install.sh - hash -r - npm install --ignore-scripts - - export PATH="$(npm bin):$PATH" + - export PATH="$(npm root)/.bin:$PATH" - npm test -- --ci --coverage --shard="$CI_NODE_INDEX/$CI_NODE_TOTAL" --maxWorkers=50% artifacts: when: always diff --git a/shell.nix b/shell.nix index 0f1366a90..3d7e1147a 100644 --- a/shell.nix +++ b/shell.nix @@ -35,7 +35,7 @@ in mkdir --parents "$(pwd)/tmp" # Built executables and NPM executables - export PATH="$(pwd)/dist/bin:$(npm bin):$PATH" + export PATH="$(pwd)/dist/bin:$(npm root)/.bin:$PATH" npm install --ignore-scripts