webpack: Cannot install webpack 4.0.0 using node 6.11.4 (current Ubuntu)
Do you want to request a feature or report a bug?
bug
What is the current behavior?
I cannot use the latest stable webpack with node v6.11.4 (version shipped with the current Ubuntu).
If the current behavior is a bug, please provide the steps to reproduce.
mkdir webpack-node-6.11.4 && cd webpack-node-6.11.4
yarn init -y
yarn add webpack --dev
this leads to
yarn add v1.3.2
info No lockfile found.
[1/4] Resolving packages...
[2/4] Fetching packages...
error enhanced-resolve@4.0.0: The engine "node" is incompatible with this module. Expected version ">=6.11.5".
error Found incompatible module
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.
What is the expected behavior?
webpack can be installed
If this is a feature request, what is motivation or use case for changing the behavior?
–
Please mention other relevant information such as the browser version, Node.js version, webpack version, and Operating System.
$ node --version
v6.11.4
$ yarn --version
1.3.2
Ubuntu 17.04 with nodejs installed from the packages
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Reactions: 9
- Comments: 22 (7 by maintainers)
Commits related to this issue
- Set min node.js version to 6.9.0 In https://github.com/jantimon/html-webpack-plugin/pull/861 support for nodejs < 6 was dropped. However, the minimal version was to 6.11.5 for no clear reason. This e... — committed to webmaster128/html-webpack-plugin by webmaster128 6 years ago
- feat: Support node 6.9 In https://github.com/jantimon/html-webpack-plugin/pull/861 support for nodejs < 6 was dropped. However, the minimal version was to 6.11.5 for no clear reason. This excludes ve... — committed to jantimon/html-webpack-plugin by webmaster128 6 years ago
- feat: Support node 6.9 In https://github.com/jantimon/html-webpack-plugin/pull/861 support for nodejs < 6 was dropped. However, the minimal version was to 6.11.5 for no clear reason. This excludes ve... — committed to jantimon/html-webpack-plugin by webmaster128 6 years ago
- update required node.js version in package.json set it to be >=6.11. see - https://github.com/webpack/webpack/issues/6579 — committed to adamcee/reverb_client_app by adamcee 6 years ago
PR has been merged on enhanced-resolve. However we’ll have to wait until a release until any PR I make here will work.
I don’t suppose anyone could give me a hint on when that would be? Or how to watch effectively for it?
n.b. anyone coming back here who spots enhanced-resolve is on > 4.0.0, mention here and I’ll get my PR for webpack updated 😃
Can I put a plea in to consider a min version of 6.10 - this is because AWS Lambda runs 6.10.3 (https://docs.aws.amazon.com/lambda/latest/dg/current-supported-versions.html) and therefore people using webpack in a matching environment to bundle their serverless functions will have some issues.
OK-
I started putting together a pull request building with node v.6.9.0 and I discovered why someone decided to bump the engine up to v6.11.5:
error enhanced-resolve@4.0.0: The engine "node" is incompatible with this module. Expected version ">=6.11.5".
With a personal build of enhanced-resolve with the engine dropped to 6.9.0 all tests seem to pass and everything builds ok for me. But it does mean this is a two stage fix!
So, once I’ve got https://github.com/webpack/enhanced-resolve/issues/141 resolved and the corresponding PR (https://github.com/webpack/enhanced-resolve/pull/142) accepted, I’ll then upgrade my dependencies and make a PR with the engine change here.