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: Error: Command failed: npm install #159

Open
tal-rofe opened this issue Mar 25, 2023 · 10 comments · Fixed by #162
Open

Error: Error: Command failed: npm install #159

tal-rofe opened this issue Mar 25, 2023 · 10 comments · Fixed by #162

Comments

@tal-rofe
Copy link

I have the following workflow config:

name: Semantic Release

on:
    push:
        branches: [main]

jobs:
    release:
        name: Release version
        permissions:
            contents: write

        runs-on: ubuntu-latest
        steps:
            - name: Checkout
              uses: actions/checkout@v3
              with:
                token: ${{ secrets.SEMANTIC_RELEASE_GH_TOKEN }}

            - name: Semantic Release
              uses: cycjimmy/semantic-release-action@v3
              with:
                  extra_plugins: |
                      @semantic-release/changelog
                      @semantic-release/commit-analyzer
                      @semantic-release/git
                      @semantic-release/npm
              env:
                  GITHUB_TOKEN: ${{ secrets.SEMANTIC_RELEASE_GH_TOKEN }}

But it fails:

Run cycjimmy/semantic-release-action@v3
  with:
    extra_plugins: @semantic-release/changelog
  @semantic-release/commit-analyzer
  @semantic-release/git
  @semantic-release/npm
  
  env:
    GITHUB_TOKEN: ***

added 317 packages, and audited 518 packages in 6s

44 packages are looking for funding
  run `npm fund` for details

1 high severity vulnerability

To address all issues, run:
  npm audit fix

Run `npm audit` for details.

Error: Error: Command failed: npm install @semantic-release/changelog @semantic-release/commit-analyzer @semantic-release/git @semantic-release/npm --silent
@tolstenko
Copy link

same thing here

Run cycjimmy/semantic-release-action@v3
  with:
    extra_plugins: @semantic-release/changelog
  @semantic-release/git
  @semantic-release/commit-analyzer
  @semantic-release/github
  @semantic-release/npm
  @semantic-release/release-notes-generator
  
  env:
    CPM_SOURCE_CACHE: /home/runner/work/mobagen/mobagen/cpm_modules
    GITHUB_TOKEN: ***

added [3](https://github.com/InfiniBrains/mobagen/actions/runs/4548042337/jobs/8018665533#step:4:3)17 packages, and audited 518 packages in [4](https://github.com/InfiniBrains/mobagen/actions/runs/4548042337/jobs/8018665533#step:4:4)s

44 packages are looking for funding
  run `npm fund` for details

1 high severity vulnerability

To address all issues, run:
  npm audit fix

Run `npm audit` for details.

Error: Error: Command failed: npm install @semantic-release/changelog @semantic-release/git @semantic-release/commit-analyzer @semantic-release/github @semantic-release/npm @semantic-release/release-notes-generator --silent

cycjimmy added a commit that referenced this issue Mar 30, 2023
fix installation error for npm-audit

fix #159
github-actions bot pushed a commit that referenced this issue Mar 30, 2023
## [3.4.2](v3.4.1...v3.4.2) (2023-03-30)

### Bug Fixes

* fix installation error for npm-audit ([86a0e59](86a0e59)), closes [#159](#159)
@cycjimmy
Copy link
Owner

I disabled npm-audit. Try again using the latest.

@tal-rofe
Copy link
Author

@cycjimmy
still fails:

8s
Run cycjimmy/semantic-release-action@v3.4.2
  with:
    extra_plugins: @semantic-release/changelog
  @semantic-release/commit-analyzer
  @semantic-release/git
  @semantic-release/npm
  
  env:
    GITHUB_TOKEN: ***

added 317 packages, and audited 518 packages in 5s

44 packages are looking for funding
  run `npm fund` for details

1 high severity vulnerability

To address all issues, run:
  npm audit fix

Run `npm audit` for details.

Error: Error: Command failed: npm install @semantic-release/changelog @semantic-release/commit-analyzer @semantic-release/git @semantic-release/npm --no-audit --silent```

@cycjimmy cycjimmy reopened this Mar 30, 2023
@alexmj212
Copy link

Was able to work around this by downgrading the node version to v14 from v16. Version 18 also failed. This is suboptimal as node v14 is going out of support very soon.

Someone at Google also found the same workaround and implemented it.

    - uses: actions/setup-node@v3
      with:
        node-version: 14

This would have been easier to identify if the --silent flag respected debugging flags.

amimart added a commit to okp4/nemeton-web that referenced this issue Mar 31, 2023
andkim-meta added a commit to oculus-samples/Unity-Movement that referenced this issue Apr 1, 2023
tal-rofe pushed a commit to Exlint/dashboard that referenced this issue Apr 3, 2023
laurence79 added a commit to laurence79/letsencrypt-gcloud-balancer that referenced this issue Apr 21, 2023
sylvanr added a commit to zimmerman-team/IATI.cloud that referenced this issue May 8, 2023
@DavraYoung
Copy link

I was able to resolve the error by upgrading to v3 version (initially we used v2) of the action and downgrading to node v14 with setup node action

@thihathit
Copy link

thihathit commented May 16, 2023

i also experienced this. got it working by downgrading action to cycjimmy/semantic-release-action@v3.4.1.

here's my config with node: v18

      - name: Semantic release
        id: release
        uses: cycjimmy/semantic-release-action@v3.4.1
        with:
          semantic_version: 18
          extra_plugins: |
            @semantic-release/release-notes-generator@^10
            @semantic-release/github@^8
            conventional-changelog-conventionalcommits@^5
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

and previously failed action #4991193617.

I think the latest v3 changes cause this problem.

sylvanr added a commit to sylvanr/semrel that referenced this issue May 23, 2023
wangela added a commit to googlemaps/google-maps-ios-utils that referenced this issue Jun 2, 2023
TheSlimvReal added a commit to Aam-Digital/ndb-core that referenced this issue Jun 12, 2023
TheSlimvReal added a commit to Aam-Digital/ndb-core that referenced this issue Jun 12, 2023
TheSlimvReal added a commit to Aam-Digital/ndb-core that referenced this issue Jun 12, 2023
@manodupont
Copy link

Hi,

It seems like a fix has been pushed to fix this issue but it is still not working. Do I miss something ?

--> Run cycjimmy/semantic-release-action@v3.4.2

added 317 packages, and audited 518 packages in 5s

44 packages are looking for funding
  run `npm fund` for details

1 high severity vulnerability

To address all issues, run:
  npm audit fix

Run `npm audit` for details.

Error: Error: Command failed: npm install @semantic-release/changelog @semantic-release/git @semantic-release/github --no-audit --silent

@carlobernardini
Copy link

For me it seems to have been due to the (peer)dependencies of the extra_plugins. For example, I bumped semantic_version to 21 while still using semantic-release-slack-bot@3.5.3 which has its peerDependency on semantic-release set to >=11.0.0 <20.0.0 (meaning 21 is not in range, hence the error).

@jkbgo
Copy link

jkbgo commented Jan 22, 2024

I am also facing same issue. Also it was working just couple of days ago and now suddenly it stopped working

added [31]()7 packages, and audited 518 packages in 8s

44 packages are looking for funding
  run `npm fund` for details

5 vulnerabilities (4 moderate, 1 high)

To address issues that do not require attention, run:
  npm audit fix

To address all issues (including breaking changes), run:
  npm audit fix --force

Run `npm audit` for details.

Error: Error: Command failed: npm install @semantic-release/commit-analyzer@9.0.2 @semantic-release/release-notes-generator@10.0.3 @semantic-release/npm@9.0.2 @semantic-release/github@8.0.7 @semantic-release/git@10.0.1 semantic-release-major-tag semantic-release-monorepo semantic-release-pnpm semantic-release-slack-bot@4.0.2 semantic-release-jira-releases@0.7.2 conventional-changelog-conventionalcommits@6.1.0 --no-audit --silent

@jkbgo
Copy link

jkbgo commented Jan 22, 2024

#159 (comment)

About my comment earlier, it was a package that got updated 5 days ago - semantic-release-monorepo
I hardcoded to use the old version for this package and it works fine now.

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

Successfully merging a pull request may close this issue.

9 participants