Atu*_*tul 7 maven-3 node.js npm maven-frontend-plugin
当我运行前端maven插件时,我无法安装npm和node
我收到以下错误:
[ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.0:install-node-and-npm (install node and npm) on project : Could not download Node.js from: https://nodejs.org/dist/v0.9.9/x64/node.exe: Could not download https://nodejs.org/dist/v0.9.9/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]
Run Code Online (Sandbox Code Playgroud)
由于这是与证书相关的问题,我已执行以下步骤来解决此问题:
1)从节点站点提取证书
2)通过keytool命令在JDK/JRE/LIB/Securitykeystore cacerts中安装证书
3)证书安装成功
我仍然遇到同样的问题。
我真的无法解决这个问题
有人可以帮忙吗?
配置:
<configuration>
<nodeVersion>v8.9.1</nodeVersion>
<npmVersion>6.1.0</npmVersion>
</configuration>
Run Code Online (Sandbox Code Playgroud)
小智 2
请按照以下步骤操作:
keytool -import -v -trustcacerts -alias nodejs -file "<Path to downloaded certificate>" -keystore "<Path to cacerts.jks>" -keypass changeit -storepass changeit-Djavax.net.ssl.trustStore="<Path to cacerts.jks>" -Djavax.net.ssl.trustStorePassword=changeit| 归档时间: |
|
| 查看次数: |
6251 次 |
| 最近记录: |