teambit / bvm

Bit version manager
Other
40 stars 13 forks source link

Support for Node 18/19 #80

Closed nickythorne closed 1 year ago

nickythorne commented 1 year ago

Describe the bug

We are in the process of upgrading our tooling versions, including node to as latest version as possible. In our case this would be Node 19. We have updated our base docker images to derive from node:18-alpine. However, we are getting errors installing the latest version of bit cli within these images, relating to unsupported node version.

Steps to Reproduce

Build Docker image from node:19-alpine3.15 and install bit

FROM node:18-alpine
RUN @teambit/bvm@latest && bvm install 
Build image docker build .

Get following error Node version 18.12.1 is not supported, please use Node.js >=14.19.3 <17.0.0.

Expected Behavior

Are there plans to support Node 18 (given that Node 19 is the current version)?

Specifications

Bit version: Workspace type: (harmony/legacy) harmony Node version: 18.12.1 Platform: alpine linux

jcfant-eb commented 1 year ago

It's also pinned to a specific version, which isn't available on Brew.

Node.js version 16.16.0 is not installed. Try to reinstall the wanted bit CLI version with the --override option

GiladShoham commented 1 year ago

bit now supports node 18 (since version 0.2.3) (and shipped with node 18.16.1 by default)