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

后端 未结 6 1922
傲寒
傲寒 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:22

    To be more exact there is a case when the real error can be found in the logs at plugin run: Command '[C:\Program Files\nodejs\npm.cmd, -v]' failed with exit code '1'

    but if you run the same command from prompt then you see that nothing wrong with the command and exit code.

    As somebody mentioned the problem is that Windows tries to run "chcp" but it is not on the PATH (manipulated by the maven plugin). This happened in my case since I modified in the registry to run cmd always with UTF encoding. In Windows this is implemented by executing "chcp 65001" along with (before) any batch or command files like npm.cmd ... My simple solution was copy chcp.com from System32 dir to nodejs directory...

提交回复
热议问题