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: npm WARN @octokit/plugin-request-log@1.0.2 requires a peer of @octokit/core@>=3 but none is installed. You must install peer dependencies yourself. #48

Closed
bubkoo opened this issue Oct 27, 2020 · 7 comments
Labels
bug Something isn't working released

Comments

@bubkoo
Copy link

bubkoo commented Oct 27, 2020

Error: npm WARN @octokit/plugin-request-log@1.0.2 requires a peer of @octokit/core@>=3 but none is installed. You must install peer dependencies yourself.

Workflow

https://github.com/bubkoo/html-to-image/runs/1316761371?check_suite_focus=true

Expected behavior
A clear and concise description of what you expected to happen.

Additional context
Add any other context about the problem here.

@cycjimmy
Copy link
Owner

I could see the error information in your project. But this action does not use the dependency of @octokit/plugin-request-log. Maybe you use this dependency in other actions, and the NPM installer prompts the error message when this action installing extra plugins.

@bubkoo
Copy link
Author

bubkoo commented Oct 28, 2020

The error is in the semantic release action's log. And my workflow is: https://github.com/bubkoo/html-to-image/blob/master/.github/workflows/release.yml

image

@cycjimmy
Copy link
Owner

Since the working directory of GitHub actions is indistinguishable, this error is due to the NPM check triggered after NPM install. It is determined that the action does not use the dependency in your error. Therefore, it is recommended that you check other actions, or use only this action test to see if there are any same errors reported.

@paulpach
Copy link

paulpach commented Nov 11, 2020

I see the exact same thing:
https://github.com/MirrorNG/MirrorNG/runs/1387550829?check_suite_focus=true#step:10:13

Here is my step:
https://github.com/MirrorNG/MirrorNG/blob/c9fa47f66938e5cc0413ff062c56b0fa985bfe2e/.github/workflows/main.yml#L83

      - name: Release
        uses: cycjimmy/semantic-release-action@v2
        id: semantic
        with:
          extra_plugins: |
            @semantic-release/exec
            @semantic-release/changelog
            @semantic-release/git
          branch: master
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

here is my release.yml:
https://github.com/MirrorNG/MirrorNG/blob/master/.releaserc.yml

Since the error is about octokit, maybe it a dependency of semantic-release/github or one of it's dependencies?

@bndynet
Copy link

bndynet commented Nov 12, 2020

I am facing same issue.

@cycjimmy cycjimmy added the bug Something isn't working label Nov 12, 2020
github-actions bot pushed a commit that referenced this issue Nov 12, 2020
## [2.5.2](v2.5.1...v2.5.2) (2020-11-12)

### Bug Fixes

* use silent installation to prevent npm WARN ([7ca507d](7ca507d)), closes [#48](#48)
@github-actions
Copy link

🎉 This issue has been resolved in version 2.5.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

@cycjimmy
Copy link
Owner

This error is due to an NPM warning when installing semantic-release and its plug-ins, and does not affect normal use. I've used --silent to prevent NPM warnings.

Thanks for your issue. @bubkoo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working released
Projects
None yet
Development

No branches or pull requests

4 participants