Closed 7dir closed 10 months 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
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:
strapi-plugin-entity-relationship-chart
with an newer version of @strapi/helper-plugin
.
So for example this doesn't work:
$ yarn -D add @strapi/helper-plugin
yarn add v1.22.19
[1/5] Validating package.json...
[2/5] Resolving packages...
[3/5] Fetching packages...
[4/5] Linking dependencies...
warning "@strapi/plugin-documentation > @strapi/helper-plugin@4.5.5" has unmet peer dependency "webpack@^5.74.0".
warning "@strapi/helper-plugin > styled-components@5.3.3" has unmet peer dependency "react-is@>= 16.8.0".
warning "@strapi/plugin-documentation > @strapi/helper-plugin > react-select > @emotion/react > @emotion/babel-plugin@11.10.5" has unmet peer dependency "@babel/core@^7.0.0".
warning " > @strapi/helper-plugin@4.5.6" has unmet peer dependency "webpack@^5.74.0".
[5/5] Building fresh packages...
success Saved lockfile.
success Saved 1 new dependency.
info Direct dependencies
└─ @strapi/helper-plugin@4.5.6
info All dependencies
└─ @strapi/helper-plugin@4.5.6
Done in 4.58s.
$ 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",