I’ve had my vaadin flow app starting up fine with 14.2.0.beta1 for a while now. Today I switched it to 14.2.0 (LTS) and now it fails to start:
11:32:45.386 [main]
INFO Visited 128 classes. Took 26 ms.
11:32:45.407 [main]
INFO Running `npm install` to resolve and optionally download frontend dependencies. This may take a moment, please stand by...
11:32:45.474 [main]
DEBUG
C:\Users\mcooper\.vaadin\node\node.exe \
C:\Users\mcooper\.vaadin\node\node_modules\npm\bin\npm-cli.js \
--no-update-notifier --no-audit install
11:32:45.478 [main]
DEBUG Output of `C:\Users\mcooper\.vaadin\node\node.exe C:\Users\mcooper\.vaadin\node\node_modules\npm\bin\npm-cli.js --no-update-notifier --no-audit install`:
Assertion failed: len < MAX_ENV_VAR_LENGTH, file c:\ws\deps\uv\src\win\util.c, line 1478
11:32:45.780 [main]
ERROR Command `C:\Users\mcooper\.vaadin\node\node.exe C:\Users\mcooper\.vaadin\node\node_modules\npm\bin\npm-cli.js --no-update-notifier --no-audit install` failed:
11:32:45.780 [main]
ERROR >>> Dependency ERROR. Check that all required dependencies are deployed in npm repositories.
11:32:45.786 [main]
DEBUG Could not initialize dev mode handler. One of the node tasks failed
com.vaadin.flow.server.ExecutionFailedException: Npm install has exited with non zero status. Some dependencies are not installed. Check npm command output
I’ve done “gradle vaadinClean” and “gradle prepareFrontend” after the change to 14.2.0.
If I revert back to 14.2.0.beta1 I get the same problem. So I may have to revert my entire eclipse workspace.
When I google for the “len < MAX_ENV_VAR_LENGTH” error I found https://github.com/libuv/libuv/issues/2587 which looks to indicate some kind of environment limit. The thing is nothing changed in my system or user environment. I literally just changed my gradle.build dependencies to 14.2.0, rebuilt eclipse dependencies, and then gradle vaadinClean prepareFrontend. So it must be something in 14.2.0 that changed some file that blows up npm now.
Running Eclipse latest on Windows 10.
EDIT2:
I have checked the environment variable size when run from eclipse is about 36K which exceeds the apparant 32K limit. Of this my $CLASSPATH is nearly 33k itself. The CLASSPATH is created by eclipse based on the gradle buildship plugin. Not sure how I’m suppose to fix this.