Page MenuHomePhabricator

LinkedWiki fails to install (with Node.js 18.x)
Closed, InvalidPublicBUG REPORT

Description

Steps to replicate the issue (include links if applicable):

  • install the extension according to the instructions

What happens?:

the following error occured with Node.js 18.x (with 16.x no problem):

$ composer install --no-dev  && yarn install --production=true
...
#0 2.058 warning popper.js@1.16.1: You can find the new Popper v2 at @popperjs/core, this package is dedicated to the legacy v1
#0 10.02 [2/4] Fetching packages...
#0 26.28 error eslint-plugin-jsdoc@39.2.2: The engine "node" is incompatible with this module. Expected version "^14 || ^16 || ^17". Got "18.15.0"
#0 26.29 error Found incompatible module.

What should have happened instead?:

the installation to complete successfully

Software version (skip for WMF-hosted wikis like Wikipedia):

MW1.39 + Node.js 18.x + LinkedWiki 3.7.0

Other information (browser name/version, screenshots, etc.):

Event Timeline

@S0ring
Hello,

I checked the dependencies:

$ npm ls eslint-plugin-jsdoc
LinkedWiki@ /home/karima/git/mediawiki-extension-LinkedWiki-CI/servers/mediawiki1/htdocs/w/extensions/LinkedWiki
└─┬ eslint-config-wikimedia
  └── eslint-plugin-jsdoc

So, jsdoc is the dependency of eslint-config-wikimedia in "DevDependencies". It's not a problem in this extension. In theory with yarn install --production=true, you do not see the error about dependencies of packages in "DevDependencies".

Quick solutions:

  1. retry the command yarn with the argument --production=true
  2. If there is again the problem with yarn, try with npm install --production
  3. if there is again a problem, remove eslint-config-wikimedia of file package.json and retry with yarn or npm