gpt4 book ai didi

spring - 是否可以使用gradle构建vaadin 14 Spring项目?

转载 作者:行者123 更新时间:2023-12-03 04:47:08 30 4
gpt4 key购买 nike

当我在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/

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com