New Vaadin 14 app fails to run, error “Failed to determine 'node' tool.” Missing Node.js and npm tools

后端 未结 6 1906
傲寒
傲寒 2020-12-03 15:25

I used the Get Started page to create a new Vaadin 14 app, after choosing the Plain Java Servlet option.

The web page successfully downloaded a .zip<

6条回答
  •  渐次进展
    2020-12-03 16:20

    Almost same here. Win 10, JDK 11.0.2, node 10.16.2 installed globally

    mvn results in

    [ERROR] Failed to determine 'npm.cmd' tool. 
    [ERROR] Please install it either:
    [ERROR] - by following the https://nodejs.org/en/download/ guide to install it globally
    [ERROR] - or by running the frontend-maven-plugin goal to install it in this project:
    [ERROR] $ mvn com.github.eirslett:frontend-maven-plugin:1.7.6:install-node-and-npm -DnodeVersion="v10.16.0"
    

    So... first advice to install it globally fails. second one works.

提交回复
热议问题