Skip to content

Fix MODULE_NOT_FOUND error on globally updating npm from 10.9.7 to latest#94

Merged
ybiquitous merged 1 commit into
mainfrom
workaround-npm-10.9.7
Mar 31, 2026
Merged

Fix MODULE_NOT_FOUND error on globally updating npm from 10.9.7 to latest#94
ybiquitous merged 1 commit into
mainfrom
workaround-npm-10.9.7

Conversation

@ybiquitous
Copy link
Copy Markdown
Member

Which issue, if any, is this issue related to?

None.

Is there anything in the PR that needs further explanation?

This PR works around the npm issue:

Our CI workflow fails in certain environments when using Node.js v22 due to a MODULE_NOT_FOUND error.

For example:

npm error code MODULE_NOT_FOUND
npm error Cannot find module 'promise-retry'

Ref https://github.com/stylelint/stylelint/actions/runs/23638864804/job/69240294632?.pr=9182#step:7:8

Updating npm to 10.9.8 first can resolve the issue.

@ybiquitous ybiquitous requested a review from a team as a code owner March 31, 2026 04:54
…latest

This works around the npm issue: npm/cli#9151

Our CI workflow fails in certain environments when using Node.js v22 due to a `MODULE_NOT_FOUND` error.

For example:

```
npm error code MODULE_NOT_FOUND
npm error Cannot find module 'promise-retry'
```

Ref https://github.com/stylelint/stylelint/actions/runs/23638864804/job/69240294632?.pr=9182#step:7:8

Updating npm to 10.9.8 first can resolve the issue.
@ybiquitous ybiquitous force-pushed the workaround-npm-10.9.7 branch from 9e7fd28 to a9257e6 Compare March 31, 2026 04:54
@ybiquitous
Copy link
Copy Markdown
Member Author

The test passed. ✅
Ref https://github.com/stylelint/.github/actions/runs/23781143339

image

Copy link
Copy Markdown
Member

@jeddy3 jeddy3 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for looking into and working around this!

@ybiquitous ybiquitous merged commit 3fcb31d into main Mar 31, 2026
14 checks passed
@ybiquitous ybiquitous deleted the workaround-npm-10.9.7 branch March 31, 2026 08:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants