Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting error when running a project that depends on esbuild #120

Open
liorp opened this issue Feb 4, 2022 · 2 comments
Open

Getting error when running a project that depends on esbuild #120

liorp opened this issue Feb 4, 2022 · 2 comments

Comments

@liorp
Copy link

liorp commented Feb 4, 2022

Hi,
I'm writing a react library using tsdx which recommends using this action.
My library has a devDependency of esbuild, which causes this beauty:

Run bahmutov/npm-install@v1.6.0
running npm-install GitHub Action
trying to restore cached NPM modules
npm cache hit undefined
installing NPM dependencies
npm at "/opt/hostedtoolcache/node/14.18.[3](https://github.com/liorp/react-hotkeys-docs-hook/runs/5069688276?check_suite_focus=true#step:4:3)/x6[4](https://github.com/liorp/react-hotkeys-docs-hook/runs/5069688276?check_suite_focus=true#step:4:4)/bin/npm"
/opt/hostedtoolcache/node/14.18.3/x64/bin/npm ci
npm ERR! esbuild-android-arm64 not accessible from esbuild

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/runner/.npm/_logs/2022-02-04T16_43_[5](https://github.com/liorp/react-hotkeys-docs-hook/runs/5069688276?check_suite_focus=true#step:4:5)2_[6](https://github.com/liorp/react-hotkeys-docs-hook/runs/5069688276?check_suite_focus=true#step:4:6)15Z-debug.log
Error: The process '/opt/hostedtoolcache/node/14.18.3/x64/bin/npm' failed with exit code 1
    at ExecState._setResult (/home/runner/work/_actions/bahmutov/npm-install/v1.6.0/dist/index.js:969:25)
    at ExecState.CheckComplete (/home/runner/work/_actions/bahmutov/npm-install/v1.6.0/dist/index.js:952:18)
    at ChildProcess.<anonymous> (/home/runner/work/_actions/bahmutov/npm-install/v1.6.0/dist/index.js:846:2[7](https://github.com/liorp/react-hotkeys-docs-hook/runs/5069688276?check_suite_focus=true#step:4:7))
    at ChildProcess.emit (events.js:210:5)
    at maybeClose (internal/child_process.js:1021:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:2[8](https://github.com/liorp/react-hotkeys-docs-hook/runs/5069688276?check_suite_focus=true#step:4:8)3:5)
Error: The process '/opt/hostedtoolcache/node/[14](https://github.com/liorp/react-hotkeys-docs-hook/runs/5069688276?check_suite_focus=true#step:4:14).[18](https://github.com/liorp/react-hotkeys-docs-hook/runs/5069688276?check_suite_focus=true#step:4:18).3/x64/bin/npm' failed with exit code 1

What's wrong?

@moltar
Copy link

moltar commented Aug 12, 2022

I'm having the same issue. @liorp were you able to figure it out?

@moltar
Copy link

moltar commented Aug 12, 2022

Altho, looks like unrelated to this action.

I added a manual install step before the action, and it still failed with the same error:

      - name: Install
        run: npm ci

      - name: Install
        uses: bahmutov/npm-install@v1
        with:
          useRollingCache: true
          install-command: npm ci

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants