运行Spring + React应用程序 - 节点问题

时间:2018-01-08 20:39:17

标签: java node.js spring reactjs maven

我试图运行Spring here提供的捆绑式Spring + React应用程序 - 我在公司防火墙后面,所以我很自然地遇到了一些依赖性问题。

<dependency>中的每个pom都安装正常,但以下执行失败

<execution>
    <id>install node and npm</id>
    <goals>
        <goal>install-node-and-npm</goal>
    </goals>
    <configuration>
        <nodeVersion>v4.4.5</nodeVersion>
        <npmVersion>3.9.2</npmVersion>
    </configuration>
</execution>
<execution>
    <id>npm install</id>
    <goals>
        <goal>npm</goal>
    </goals>
    <configuration>
        <arguments>install</arguments>
    </configuration>
</execution>

运行mvn install

后出现以下错误
[ERROR] Failed to execute goal com.github.eirslett:frontend-maven-
plugin:1.2:install-node-and-npm (install node and npm) on project hello-spring-react: 
Could not download Node.js from: https://nodejs.org/dist/v4.4.5/win-x64/node.exe: 
Could not download https://nodejs.org/dist/v4.4.5/win-x64/node.exe: 
sun.security.validator.ValidatorException: 
PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: 
unable to find valid certification path to requested target -> [Help 1]

我有本地安装的节点和npm,所以我想知道是否可以使用它们(而不是解决明显的证书问题)?如果没有,有人可以向我解释为什么和/或如何解决此证书错误?

非常感谢!

0 个答案:

没有答案