当我在intellij Idea中创建并运行它时,从控制台输出了以下内容,但是在一分钟前我初始化了一个React应用程序时,该节点已配置为使用代理。
java.lang.RuntimeException: Unable to initialize Vaadin DevModeHandler Failed to determine 'npm.cmd' tool. Please install it either:
- by following the https://nodejs.org/en/download/ guide to install it globally
- or by running the frontend-maven-plugin goal to install it in this project: $ mvn com.github.eirslett:frontend-maven-plugin:1.7.6:install-node-and-npm -DnodeVersion="v10.16.0"
最佳答案
您需要与前端Maven插件等效的gradle
尝试一下:
// build.gradle
plugins {
id 'org.siouan.frontend' version '1.1.0'
}
frontend {
nodeVersion = '12.14.0'
}
之后,您需要使用
gradle build
命令编译项目。问候!
关于spring - 是否可以使用gradle构建vaadin 14 Spring项目?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58197599/