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

Node v21: rimraf module not found #1367

Open
3 tasks done
its-dibo opened this issue Feb 4, 2024 · 5 comments
Open
3 tasks done

Node v21: rimraf module not found #1367

its-dibo opened this issue Feb 4, 2024 · 5 comments

Comments

@its-dibo
Copy link

its-dibo commented Feb 4, 2024

  • I have searched for similar issues
  • I am using the latest version of npm-check-updates
  • I am using node >= 14.14

when I run npx npm-check-updates on Node v21 I got Error: Cannot find module 'node_modules/npm-check-updates/node_modules/rimraf/dist/commonjs/index.js'

@raineorshine
Copy link
Owner

That looks like some kind of npm install error. I'm able to do npx npm-check-updates on Node v21 without an error:

raine[template]% node -v
v21.6.1
raine[template]% npx npm-check-updates
Need to install the following packages:
npm-check-updates@16.14.14
Ok to proceed? (y)
npm WARN deprecated @npmcli/move-file@2.0.1: This functionality has been moved to @npmcli/fs
Checking /Users/raine/projects/ncu-issues/template/package.json
[====================] 2/2 100%

 ncu-test-tag   1.0.0  →   1.1.0
 ncu-test-v2   ^1.0.0  →  ^2.0.0

Run npx npm-check-updates -u to upgrade package.json

I would try clearing the npx cache and see if that helps.

@raineorshine raineorshine changed the title module not found Node v21: rimraf module not found Feb 4, 2024
@its-dibo
Copy link
Author

related, but still not working
#1372

@raineorshine
Copy link
Owner

It's not related to #1372, as that change has not been published.

@its-dibo
Copy link
Author

waiting for the new version to see if it solves the issue

@raineorshine
Copy link
Owner

Does the same problem also occur when you do npm install -g npm-check-updates and run ncu?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants