node-vision / strapi-plugin-entity-relationship-chart

Strapi Plugin displays Entity Relationship Diagram of all models, fields and relations.
180 stars 24 forks source link

Unsupported engine #21

Closed 7dir closed 10 months ago

7dir commented 1 year ago
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE   package: 'strapi-plugin-entity-relationship-chart@4.1.0',
npm WARN EBADENGINE   required: { node: '>=12.x. <=16.x.x', npm: '>=6.0.0' },
npm WARN EBADENGINE   current: { node: 'v16.17.0', npm: '8.19.2' }
npm WARN EBADENGINE }
treckstar commented 1 year ago

Just saw this pop up while upgrading to Strapi 4.3.8 from Strapi 4.2.3, followed by a ton of dependencies that were skipped as well. Attached file with the rest of errors. My package.json file has my engine specified too. Response at end of npm install

npm WARN notsup Unsupported engine for strapi-plugin-entity-relationship-chart@4.1.0: 
    wanted: {"node":">=12.x. <=16.x.x","npm":">=6.0.0"} (current: {"node":"14.20.0","npm":"6.14.17"})
npm WARN notsup Not compatible with your version of node/npm: 
     strapi-plugin-entity-relationship-chart@4.1.0

package.json

"engines": {
    "node": ">=12.x.x <=16.x.x",
    "npm": ">=6.0.0"
  }

Also am experiencing most of the errors in the Issues as well, but figured I'd share this since it was most recent. Thanks!

2022-10-05-strapi-plugin-entity-relationship-chart-4.3.8-upgrade-unsupported-engined.txt

vivi90 commented 1 year ago

The same here:

$ nvm use
Found '.nvmrc' with version <lts/hydrogen>
Now using node v18.13.0 (npm v8.19.3)

$ yarn -D add strapi-plugin-entity-relationship-chart
yarn add v1.22.19
[1/5] Validating package.json...
[2/5] Resolving packages...
warning strapi-plugin-entity-relationship-chart > @strapi/helper-plugin > @fortawesome/fontawesome-svg-core@1.3.0: Please upgrade to 6.1.0. https://fontawesome.com/docs/changelog/
warning strapi-plugin-entity-relationship-chart > @strapi/helper-plugin > @fortawesome/fontawesome-svg-core > @fortawesome/fontawesome-common-types@0.3.0: Please upgrade to 6.1.0. https://fontawesome.com/docs/changelog/
[3/5] Fetching packages...
error @strapi/helper-plugin@4.0.2: The engine "node" is incompatible with this module. Expected version ">=12.x.x <=16.x.x". Got "18.13.0"
error Found incompatible module.
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.

That's because the used version of the @strapi/helper-plugin dependency is hard pinned here: https://github.com/node-vision/strapi-plugin-entity-relationship-chart/blob/337686ee92b3d8a9b00ee393fe69a086414bb143/package.json#L12 That's bad, since:

$ yarn -D add strapi-plugin-entity-relationship-chart yarn add v1.22.19 [1/5] Validating package.json... [2/5] Resolving packages... warning strapi-plugin-entity-relationship-chart > @strapi/helper-plugin > @fortawesome/fontawesome-svg-core@1.3.0: Please upgrade to 6.1.0. https://fontawesome.com/docs/changelog/ warning strapi-plugin-entity-relationship-chart > @strapi/helper-plugin > @fortawesome/fontawesome-svg-core > @fortawesome/fontawesome-common-types@0.3.0: Please upgrade to 6.1.0. https://fontawesome.com/docs/changelog/ [3/5] Fetching packages... error @strapi/helper-plugin@4.0.2: The engine "node" is incompatible with this module. Expected version ">=12.x.x <=16.x.x". Got "18.13.0" error Found incompatible module. info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.

  - We need to be able to update this dependency regularly with every Strapi migration, see: 
  https://docs.strapi.io/developer-docs/latest/update-migration-guides/update-version.html#step-1-upgrade-the-dependencies

 So, one possible fix for the current Strapi major version 4 might be to allow minor version upgrades:
 ```json
 "@strapi/helper-plugin": "^4.0.2",