oat-sa/package-tao

Instalation failed with NPM error

Opened this issue · 2 comments

I'm currently using a fresh installation of Ubuntu 22.04.3 LTS
PHP already downgrade to 8.1.27
Using composer 2.6.6 (already try downgrade to version 1, as seen on tutorial page, but installation didn't work. So I keep this 2.6.6).

Below is error that appear when running composer:

Installing NPM dependencies for oat-sa/extension-tao-test
/var/www/html/package-tao-3.6.0/taoTests
npm WARN old lockfile
npm WARN old lockfile The package-lock.json file was created with an old version of npm,
npm WARN old lockfile so supplemental metadata must be fetched from the registry.
npm WARN old lockfile
npm WARN old lockfile This is a one-time fix-up, please be patient...
npm WARN old lockfile
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE package: '@oat-sa/tao-test-runner@0.9.0',
npm WARN EBADENGINE required: { node: '>=14.0.0' },
npm WARN EBADENGINE current: { node: 'v12.22.9', npm: '8.5.1' }
npm WARN EBADENGINE }

How to fix this?
Thanks.

Same issue here!

I've addressed this by installing nvm (https://github.com/nvm-sh/nvm) to manage multiple node versions. I then installed and used node 14 and the installation went through.

$ nvm install 14
$ nvm use 14
Now using node v14.18.0 (npm v6.14.15)
$ node -v
v14.18.0

I can't say if this the the best way to get the installation done it worked and the setup seems stable.