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

Version 14 ships incompatible npm 11 #91

Closed
dtakken opened this issue Dec 19, 2024 · 3 comments
Closed

Version 14 ships incompatible npm 11 #91

dtakken opened this issue Dec 19, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@dtakken
Copy link

dtakken commented Dec 19, 2024

When I add version 14 of the node plugin to my Lando setup:

services:
  node:
    type: node:14

then start Lando and SSH into the node service, I see that npm 11 is installed, which does not run on node 14:

lando ssh -s node
node@bd500a732c53:/app$ npm --version
ERROR: npm v11.0.0 is known not to run on Node.js v14.21.3.  This version of npm supports the following node versions: `^20.17.0 || >=22.9.0`. You can find the latest version at https://nodejs.org/.
@dtakken dtakken added the bug Something isn't working label Dec 19, 2024
@reynoldsalec
Copy link
Member

@dtakken just tested this out and got 6.14.18 for npm --version on node:14, are you sure you're not specifying a higher version of npm?

Might be worth removing the downloaded image (run lando destroy on your project, then docker rmi node:14) just to make sure it's not corrupted somehow.

@AaronFeledy
Copy link
Member

Be sure to run lando rebuild for any version changes to take effect.

@dtakken
Copy link
Author

dtakken commented Dec 31, 2024

Yes, it must have been some issue with the Docker image, not sure what... it works now, thanks!

@dtakken dtakken closed this as completed Dec 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants