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 version 20 is not supported #66

Closed
cawa-93 opened this issue Jan 22, 2024 · 5 comments
Closed

Node version 20 is not supported #66

cawa-93 opened this issue Jan 22, 2024 · 5 comments
Labels
bug Something isn't working

Comments

@cawa-93
Copy link

cawa-93 commented Jan 22, 2024

When I try to start lando Displays an error that version 20 is not supported, despite the fact that the documentation states that version 20 is supported

node/docs/index.md

Lines 20 to 22 in 2efe15e

## Supported versions
* [20](https://hub.docker.com/r/_/node/)

Unhandled rejection Error: node version 20 is not supported
    at new LandoLando (/snapshot/cli/node_modules/@lando/core/plugins/lando-core/builders/_lando.js)
    at new LandoAppserver (/snapshot/cli/node_modules/@lando/core/plugins/lando-core/builders/_appserver.js)
    at new LandoNode (/snapshot/cli/node_modules/@lando/node/services/node/builder.js)
    at /snapshot/cli/node_modules/@lando/core/plugins/lando-services/app.js
    at arrayEach (/snapshot/cli/node_modules/@lando/core/node_modules/lodash/lodash.js)
    at Function.forEach (/snapshot/cli/node_modules/@lando/core/node_modules/lodash/lodash.js)
    at AsyncEvents.<anonymous> (/snapshot/cli/node_modules/@lando/core/plugins/lando-services/app.js)
    at AsyncEvents.handle (/snapshot/cli/node_modules/@lando/core/lib/events.js)
    at /snapshot/cli/node_modules/@lando/core/lib/events.js
From previous event:
    at AsyncEvents.emit (/snapshot/cli/node_modules/@lando/core/lib/events.js)
    at /snapshot/cli/node_modules/@lando/core/lib/app.js
From previous event:
    at App.init (/snapshot/cli/node_modules/@lando/core/lib/app.js)
    at /snapshot/cli/bin/lando.js
    at process.processImmediate (node:internal/timers:471:21)
From previous event:
    at Object.<anonymous> (/snapshot/cli/bin/lando.js)
    at Module._compile (pkg/prelude/bootstrap.js:1926:22)
    at Module._extensions..js (node:internal/modules/cjs/loader:1166:10)
    at Module.load (node:internal/modules/cjs/loader:988:32)
    at Module._load (node:internal/modules/cjs/loader:834:12)
    at Function.runMain (pkg/prelude/bootstrap.js:1979:12)
    at node:internal/main/run_main_module:17:47

My lando config is:

name: catchthatfact
recipe: wordpress
config:
  webroot: wp

env_file:
    - .env


services:
    appserver:
        run:
            - composer install

    node:
        type: node:20
        command: pnpm run -r dev
        run:
            - pnpm install
@cawa-93 cawa-93 added the bug Something isn't working label Jan 22, 2024
@andrewg211
Copy link

Here's a work around for now:

services:
  frontend:
    type: node:18
    scanner: false
    ssl: true
    overrides:
      image: node:20

@miloskroulik
Copy link

Thanks. This should be fixed with the next stable release. The problem is probably that the docs reflect the latest version of the plugin, event if its not available in the lando release yet.

@stebogit
Copy link

it looks like this was fixed in v1.1.0

@reynoldsalec
Copy link
Sponsor Member

Correct!

@chrillep
Copy link

    overrides:
      image: "node:lts-alpine"
  if you prefer to always be on LTS

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

6 participants