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

Install failure for v0.34.0 #394

Closed
simonsanchez opened this issue May 1, 2023 · 5 comments
Closed

Install failure for v0.34.0 #394

simonsanchez opened this issue May 1, 2023 · 5 comments

Comments

@simonsanchez
Copy link

The latest release, v0.34.0 as of the time of this writing, fails to install.

Raw logs
2023-05-01T22:14:16.7235855Z Requested labels: ubuntu-latest
2023-05-01T22:14:16.7236088Z Job defined at: simonsanchez/gulp-sample/.github/workflows/markdown-lint.yaml@refs/heads/main
2023-05-01T22:14:16.7236193Z Waiting for a runner to pick up this job...
2023-05-01T22:14:17.5139229Z Job is waiting for a hosted runner to come online.
2023-05-01T22:14:20.5441825Z Job is about to start running on the hosted runner: GitHub Actions 2 (hosted)
2023-05-01T22:14:23.3516372Z Current runner version: '2.303.0'
2023-05-01T22:14:23.3549072Z ##[group]Operating System
2023-05-01T22:14:23.3549797Z Ubuntu
2023-05-01T22:14:23.3550260Z 22.04.2
2023-05-01T22:14:23.3550551Z LTS
2023-05-01T22:14:23.3550908Z ##[endgroup]
2023-05-01T22:14:23.3551301Z ##[group]Runner Image
2023-05-01T22:14:23.3551659Z Image: ubuntu-22.04
2023-05-01T22:14:23.3552084Z Version: 20230426.1
2023-05-01T22:14:23.3552699Z Included Software: https://github.com/actions/runner-images/blob/ubuntu22/20230426.1/images/linux/Ubuntu2204-Readme.md
2023-05-01T22:14:23.3553472Z Image Release: https://github.com/actions/runner-images/releases/tag/ubuntu22%2F20230426.1
2023-05-01T22:14:23.3553949Z ##[endgroup]
2023-05-01T22:14:23.3554393Z ##[group]Runner Image Provisioner
2023-05-01T22:14:23.3554803Z 2.0.161.1
2023-05-01T22:14:23.3555474Z ##[endgroup]
2023-05-01T22:14:23.3556315Z ##[group]GITHUB_TOKEN Permissions
2023-05-01T22:14:23.3557022Z Contents: read
2023-05-01T22:14:23.3557350Z Metadata: read
2023-05-01T22:14:23.3558050Z Packages: read
2023-05-01T22:14:23.3558511Z ##[endgroup]
2023-05-01T22:14:23.3563245Z Secret source: Actions
2023-05-01T22:14:23.3563858Z Prepare workflow directory
2023-05-01T22:14:23.4440270Z Prepare all required actions
2023-05-01T22:14:23.4776510Z Complete job name: example
2023-05-01T22:14:23.6157143Z ##[group]Run npm install -g markdownlint-cli@0.34.0
2023-05-01T22:14:23.6157822Z �[36;1mnpm install -g markdownlint-cli@0.34.0�[0m
2023-05-01T22:14:23.6980214Z shell: /usr/bin/bash -e {0}
2023-05-01T22:14:23.6980887Z ##[endgroup]
2023-05-01T22:14:28.4526337Z npm ERR! code 127
2023-05-01T22:14:28.4528271Z npm ERR! git dep preparation failed
2023-05-01T22:14:28.4529698Z npm ERR! command /usr/local/bin/node /usr/local/lib/node_modules/npm/bin/npm-cli.js install --force --cache=/home/runner/.npm --prefer-offline=false --prefer-online=false --offline=false --no-progress --no-save --no-audit --include=dev --include=peer --include=optional --no-package-lock-only --no-dry-run
2023-05-01T22:14:28.4530682Z npm ERR! npm WARN using --force Recommended protections disabled.
2023-05-01T22:14:28.4531315Z npm ERR! npm ERR! code 127
2023-05-01T22:14:28.4531878Z npm ERR! npm ERR! path /home/runner/.npm/_cacache/tmp/git-clonehTo32A
2023-05-01T22:14:28.4532347Z npm ERR! npm ERR! command failed
2023-05-01T22:14:28.4534920Z npm ERR! npm ERR! command sh -c npm run compile
2023-05-01T22:14:28.4536980Z npm ERR! npm ERR! > cliui@8.0.1 precompile
2023-05-01T22:14:28.4537411Z npm ERR! npm ERR! > rimraf build
2023-05-01T22:14:28.4538025Z npm ERR! npm ERR! npm WARN using --force Recommended protections disabled.
2023-05-01T22:14:28.4538489Z npm ERR! npm ERR! sh: 1: rimraf: not found
2023-05-01T22:14:28.4538862Z npm ERR! 
2023-05-01T22:14:28.4539283Z npm ERR! npm ERR! A complete log of this run can be found in:
2023-05-01T22:14:28.4539925Z npm ERR! npm ERR!     /home/runner/.npm/_logs/2023-05-01T22_14_27_788Z-debug-0.log
2023-05-01T22:14:28.4540234Z 
2023-05-01T22:14:28.4540469Z npm ERR! A complete log of this run can be found in:
2023-05-01T22:14:28.4541004Z npm ERR!     /home/runner/.npm/_logs/2023-05-01T22_14_24_730Z-debug-0.log
2023-05-01T22:14:28.4669316Z ##[error]Process completed with exit code 127.
2023-05-01T22:14:28.5176453Z Cleaning up orphan processes

Sample workflow to reproduce

name: markdownlint

on: workflow_dispatch

jobs:
  example:
    runs-on:
      - ubuntu-latest
    steps:
      - name: install markdownlint-cli
        run: npm install -g markdownlint-cli@0.34.0

Pinning to the prior version v0.33.0 will successfully install.

@DavidAnson
Copy link
Collaborator

As a first investigative step, this scenario works fine in a clean Docker container:

user@HOST Temp % docker run --rm --tty --name playground --volume $PWD:/home/workdir --workdir /home/workdir --user node --interactive node:18 bash
node@87c3c4ef8bbe:/home/workdir$ npm install markdownlint-cli@0.34.0    

added 59 packages in 21s

17 packages are looking for funding
  run `npm fund` for details
node@87c3c4ef8bbe:/home/workdir$ ./node_modules/.bin/markdownlint --version
0.34.0
node@87c3c4ef8bbe:/home/workdir$ 

@DavidAnson
Copy link
Collaborator

This works fine for my precommit scenarios (see linked issue which suggests otherwise): https://github.com/DavidAnson/Workflows/actions/runs/4856566071/jobs/8656246014

However, the --global install scenario fails for me as well in a new test (though local install works fine): https://github.com/DavidAnson/Workflows/actions/runs/4856566073

I'll have a look this evening.

@DavidAnson
Copy link
Collaborator

Here is someone reporting the same cliui/rimraf issue - but on Windows under DevOps installing angular:
https://stackoverflow.com/questions/76150986/installing-packages-globally-with-npm-is-failing-on-windows-with-rimraf-error

Totally different environment, same failure. My guess is that some mutual dependency broke a bunch of projects like this.

@DavidAnson
Copy link
Collaborator

I'm reasonably confident this is the underlying issue: isaacs/jackspeak#4

@DavidAnson
Copy link
Collaborator

The dependency has been fixed, please try again.

templeman pushed a commit to templeman/dotfiles-1 that referenced this issue May 2, 2023
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