linagora / esn

OpenPaaS web & API server
4 stars 0 forks source link

Update NodeJs Version #42

Open renaudboyer opened 2 years ago

renaudboyer commented 2 years ago

Update ESN NodeJs version to version 16

alagane commented 2 years ago

Testing node version on esn-frontend-inbox (083df95) nvm use $NODE_VERSION node --version npm --version rm -rf node_modules npm cache clean --force npm i --legacy-peer-deps npm run build:prod npm run serve

Node 10.24.1 (lts/dubnium) - NPM 6.14.15

:heavy_check_mark: npm install works :heavy_check_mark: npm run build:prod :heavy_check_mark: npm run serve works

Node 12.22.10 (lts/erbium) - NPM 6.14.16

:heavy_check_mark: npm install works :heavy_check_mark: npm run build:prod :heavy_check_mark: npm run serve works

Node 14.19.0 (lts/fermium) - NPM 6.14.16

:heavy_check_mark: npm install works :heavy_check_mark: npm run build:prod :heavy_check_mark: npm run serve works

Node 16.14.0 (lts/gallium) - NPM 6.14.16

❌ npm install does not work (Failed at the sharp@0.23.4 install script)

alagane commented 2 years ago

Testing node on backend (esn project) Building docker image changing base node image to these node versions Running docker compose with the created image

Node 10.24.1 (lts/dubnium)

:heavy_check_mark: Build image :heavy_check_mark: Run docker compose

Node 12.22.10 (lts/erbium)

:heavy_check_mark: Build image :heavy_check_mark: Run docker compose

Node 14.19.0 (lts/fermium)

:heavy_check_mark: Build image :heavy_check_mark: Run docker compose

Node 16.14.0 (lts/gallium)

❌ Build image (crashed, out of memory?)