Commit f96f1ee
committed
fix: Install node when npm/npx not found in getNpmCliToolExecutable
When npm/npx couldn't be found in any location (project, global, or
alternative dir), getNpmCliToolExecutable would return an empty list.
Flags like --no-update-notifier were then added to this empty list,
resulting in a malformed command that tried to execute the flag as
the program name.
Added a fallback that triggers node installation when npm/npx is not
found and an alternativeDirGetter is available. After installation,
uses the paths from activeNodeInstallation which correctly point to
the version-specific node installation directory (e.g., node-v24.10.0)
rather than the old non-versioned 'node' directory.1 parent d975ea2 commit f96f1ee
File tree
1 file changed
+24
-0
lines changed- flow-server/src/main/java/com/vaadin/flow/server/frontend
1 file changed
+24
-0
lines changedLines changed: 24 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
885 | 885 | | |
886 | 886 | | |
887 | 887 | | |
| 888 | + | |
| 889 | + | |
| 890 | + | |
| 891 | + | |
| 892 | + | |
| 893 | + | |
| 894 | + | |
| 895 | + | |
| 896 | + | |
| 897 | + | |
| 898 | + | |
| 899 | + | |
| 900 | + | |
| 901 | + | |
| 902 | + | |
| 903 | + | |
| 904 | + | |
| 905 | + | |
| 906 | + | |
| 907 | + | |
| 908 | + | |
| 909 | + | |
| 910 | + | |
| 911 | + | |
888 | 912 | | |
889 | 913 | | |
890 | 914 | | |
| |||
0 commit comments