Skip to content

Commit

Permalink
Workaround for ECONNRESET http issue with npm during compilation (#216)
Browse files Browse the repository at this point in the history
Signed-off-by: Dennis Meister <dennis.meister@bosch.com>
  • Loading branch information
dennismeister93 authored Mar 11, 2024
1 parent 3b6a762 commit 1812ceb
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 12 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/build-exe.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,17 +70,20 @@ jobs:
echo "$(jq --arg VERSION $VERSION '.version=$VERSION' package.json)" > package.json
# This step is needed to install needed dependencies (node-pty) for arm based architecture
# npm 9.9.3 because of http ECONNRESET issue during installation
- name: Install dependencies for ARM64
if: ${{ matrix.arch == 'arm64' }}
uses: uraimo/run-on-arch-action@v2
with:
base_image: arm64v8/node:${{ env.NODE_VERSION }}-bullseye
run: |
npm install -g npm@9.9.3
npm install .
- name: Install dependencies for AMD64
if: ${{ matrix.arch == 'x64' }}
run: |
npm install -g npm@9.9.3
npm install .
- name: Compile EXE for ${{ matrix.arch }}
Expand Down
2 changes: 2 additions & 0 deletions install_node.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,5 @@ echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.co

sudo apt-get update
sudo apt-get install nodejs -y
# To keep npm aligned with compilation step inside CI
sudo npm install -g npm@9.9.3
24 changes: 12 additions & 12 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 1812ceb

Please sign in to comment.