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

Error with bahmutov/npm-install@v1 #117

Open
racheldaguenethahn opened this issue Dec 7, 2021 · 2 comments
Open

Error with bahmutov/npm-install@v1 #117

racheldaguenethahn opened this issue Dec 7, 2021 · 2 comments

Comments

@racheldaguenethahn
Copy link

racheldaguenethahn commented Dec 7, 2021

Hello,

one of my pipeline - not modified from 2 months - defines this step:

`

  • uses: bahmutov/npm-install@v1
    with:
    working-directory: frontend
    `

The previous week, this step runs successfully.

`

Run bahmutov/npm-install@v1
running npm-install GitHub Action
trying to restore cached NPM modules
Received 117104878 of 117104878 (100.0%), 108.4 MBs/sec
Cache Size: ~112 MB (117104878 B)
/usr/bin/tar --use-compress-program zstd -d -xf /home/runner/work/_temp/c1b9c05c-4b75-4f27-9257-dcc569abecfe/cache.tzst -P -C /home/runner/work/equipe-de-france/equipe-de-france
npm cache hit yarn-linux-x64-425bc2d37dca3f79a1fdff8734e4c94af78779cfbe6ab7b8df71909b2a78bc382f506b318e1f64b08d5e93c2a57a028cdefedf29a335d2e526d133ecf05b1079
installing NPM dependencies using Yarn
yarn at "/usr/local/bin/yarn"
/usr/local/bin/yarn --frozen-lockfile
yarn install v1.22.17
[1/5] Validating package.json...
[2/5] Resolving packages...
[3/5] Fetching packages...
[4/5] Linking dependencies...
warning "@zeit/next-css > [email protected]" has unmet peer dependency "webpack@^4.0.0".
warning "@zeit/next-css > [email protected]" has unmet peer dependency "webpack@^4.4.0".
warning "@zeit/next-sass > [email protected]" has unmet peer dependency "webpack@^2.0.0 || >= 3.0.0-rc.0 || ^3.0.0".
warning "next-images > [email protected]" has unmet peer dependency "webpack@^4.0.0 || ^5.0.0".
warning "next-images > [email protected]" has unmet peer dependency "webpack@^4.0.0 || ^5.0.0".
warning " > [email protected]" has unmet peer dependency "@types/[email protected]".
warning " > [email protected]" has unmet peer dependency "react-is@>= 16.8.0".
warning " > [email protected]" has unmet peer dependency "[email protected]".
warning " > [email protected]" has incorrect peer dependency "[email protected]".
warning " > [email protected]" has incorrect peer dependency "[email protected]".
[5/5] Building fresh packages...
Done in 151.82s.
all done, exiting

`

Today, the step is suddenly failing and I don't know why.
bahmutov_error.txt

Does someone have an idea?

Thanks
Rachel

@dbenton9
Copy link

dbenton9 commented Dec 14, 2021

I'm also experiencing identical issues, I created a PR to remove one line of html out of my codebase and now I'm seeing the same error message as @racheldaguenethahn.

I just upgraded to the new Mac, but I wouldn't think that would have anything to do with this...

@racheldaguenethahn
Copy link
Author

I dbenton9, finally we resolved the issue by updating the github workflow.

This existing workflow:
...
- uses: actions/checkout@v2
- uses: bahmutov/npm-install@v1
with:
working-directory: frontend
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Install dependences
working-directory: ./frontend
run: yarn
....

has been updated like this
....
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm install

- uses: bahmutov/npm-install@v1
with:
working-directory: frontend
install-command: yarn --frozen-lockfile --silent --ignore-engines
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Install dependences
working-directory: ./frontend
run: yarn --ignore-engines
....

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