Skip to content

Commit 78a9faa

Browse files
committed
fix: npm bin has been deprecated, replaced with $(npm root)/.bin
1 parent 25b1bac commit 78a9faa

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

scripts/build-platforms-generate.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ cat << "EOF"
131131
- .\scripts\choco-install.ps1
132132
- refreshenv
133133
- npm install --ignore-scripts
134-
- $env:Path = "$(npm bin);" + $env:Path
134+
- $env:Path = "$(npm root)\.bin;" + $env:Path
135135
- npm test -- --ci --coverage --shard="$CI_NODE_INDEX/$CI_NODE_TOTAL" --maxWorkers=50%
136136
artifacts:
137137
when: always
@@ -159,7 +159,7 @@ cat << "EOF"
159159
- ./scripts/brew-install.sh
160160
- hash -r
161161
- npm install --ignore-scripts
162-
- export PATH="$(npm bin):$PATH"
162+
- export PATH="$(npm root)/.bin:$PATH"
163163
- npm test -- --ci --coverage --shard="$CI_NODE_INDEX/$CI_NODE_TOTAL" --maxWorkers=50%
164164
artifacts:
165165
when: always

shell.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ in
3535
mkdir --parents "$(pwd)/tmp"
3636
3737
# Built executables and NPM executables
38-
export PATH="$(pwd)/dist/bin:$(npm bin):$PATH"
38+
export PATH="$(pwd)/dist/bin:$(npm root)/.bin:$PATH"
3939
4040
npm install --ignore-scripts
4141

0 commit comments

Comments
 (0)