Skip to content

Commit b021a69

Browse files
fix: improve npm resolution for non-windows (#23810) (#23815)
Adds another potential path to the npm resolver algorithm to make it compatible with node installation performed by frontend-maven-plugin Co-authored-by: Marco Collovati <marco@vaadin.com>
1 parent 45efe30 commit b021a69

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

flow-server/src/main/java/com/vaadin/flow/server/frontend/NodeResolver.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -585,6 +585,7 @@ private String findNpmCliScript(File nodeFolder, String nodeVersion) {
585585
} else {
586586
searchPaths.add("lib/node_modules/npm/bin/npm-cli.js");
587587
searchPaths.add("../lib/node_modules/npm/bin/npm-cli.js");
588+
searchPaths.add("node_modules/npm/bin/npm-cli.js");
588589
}
589590

590591
for (String path : searchPaths) {

0 commit comments

Comments
 (0)