Missing 'npm: xml2js@ 0.6.2' Node Module during github action execution
- Dominant language
- TypeScript
- Stars
- 81
- Forks
- 11
- PR merge metrics
- No merged PRs in 30d
Description
Error when running flow-lens
```yaml
name: Generate Flow Preview
on:
pull_request:
branches: [main, uat]
jobs:
generate_preview:
permissions: write-all
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.ref }}
fetch-depth: 2
- name: Set up Deno
uses: denoland/setup-deno@v2
with:
deno-version: latest
- name: Generate flow diagrams
run: |
deno run \
--allow-read \
--allow-write \
--allow-env \
--allow-net \
--allow-run \
jsr:@goog/flow-lens \
--mode="github_action" \
--diagramTool="mermaid" \
--gitDiffFromHash="HEAD^1" \
--gitDiffToHash="HEAD"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
```
Contributor guide
Research direction
Start by rerunning the shown GitHub Actions workflow and inspecting the Deno command's dependency-resolution error for npm: xml2js@0.6.2. Trace how the jsr:@goog/flow-lens invocation loads that module; the work is done when Generate flow diagrams completes successfully in the pull-request workflow.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- deno, github-actions, typescript
- Domain
- ci-cd, devops
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 62/100