针对registry.npmjs.org阻止maven下载的Https Mismatch

时间:2015-04-03 21:29:15

标签: maven npm

你遇到过npmjs.org的问题吗?我想,我必须做错事(比如使用错误的网址),因为这个网站的https可能没有被破坏....对吗?

Npm下载失败:

Failed to execute goal com.github.eirslett:frontend-maven-plugin:0.0.23:
install-node-and-npm (install-frontend-build-tools) on project xxx: 
Could not download Node.js: Could not download 
https://registry.npmjs.org/v0.12.1/node-v0.12.1-linux-x64.tar.gz: 
hostname in certificate didn't match: <registry.npmjs.org> != <a.sni.fastly.net> OR <a.sni.fastly.net> OR 
<a.sni.global-ssl.fastly.net> ->

我配置了frontend-maven-plugin:

   <plugin>
    <groupId>com.github.eirslett</groupId>
    <version>0.0.23</version>
    <artifactId>frontend-maven-plugin</artifactId>
    <configuration>
      <workingDirectory>src/frontend</workingDirectory>
    </configuration>
    <executions>
      <!-- get latest node/npm/ember tools -->
      <execution>
        <id>install-frontend-build-tools</id>
        <phase>initialize</phase>
        <goals>
          <goal>install-node-and-npm</goal>
        </goals>
        <configuration>
          <nodeVersion>v0.12.1</nodeVersion>
          <npmVersion>2.5.1</npmVersion>
          <downloadRoot>https://registry.npmjs.org/</downloadRoot> <!-- http://mvn.corp.attivio.com/nexus/content/groups/npm-all/ -->
        </configuration>

0 个答案:

没有答案