Skip to content

Commit 7c688ec

Browse files
committed
fix: npm bin has been deprecated, replaced with $(npm root)/.bin
1 parent b6b5adf commit 7c688ec

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

scripts/build-platforms-generate.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ cat << "EOF"
9292
- .\scripts\choco-install.ps1
9393
- refreshenv
9494
- npm install --ignore-scripts
95-
- $env:Path = "$(npm bin);" + $env:Path
95+
- $env:Path = "$(npm root)\.bin;" + $env:Path
9696
- npm test -- --ci --coverage --shard="$CI_NODE_INDEX/$CI_NODE_TOTAL"
9797
artifacts:
9898
when: always
@@ -120,7 +120,7 @@ cat << "EOF"
120120
- ./scripts/brew-install.sh
121121
- hash -r
122122
- npm install --ignore-scripts
123-
- export PATH="$(npm bin):$PATH"
123+
- export PATH="$(npm root)/.bin:$PATH"
124124
- npm test -- --ci --coverage --shard="$CI_NODE_INDEX/$CI_NODE_TOTAL"
125125
artifacts:
126126
when: always

shell.nix

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ in
3232
mkdir --parents "$(pwd)/tmp"
3333
3434
# Built executables and NPM executables
35-
export PATH="$(pwd)/dist/bin:$(npm bin):$PATH"
35+
export PATH="$(pwd)/dist/bin:$(npm root)/.bin:$PATH"
3636
3737
npm install --ignore-scripts
3838

0 commit comments

Comments
 (0)