question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Use https://nodejs.org/ as defaultDownloadRoot

See original GitHub issue

Currently, http://nodejs.org/dist/ redirects to https://nodejs.org/en/blog/. Adding

<nodeDownloadRoot>https://nodejs.org/dist/</nodeDownloadRoot>

to my pom.xml solved the problem. Maybe it would be an option to use the HTTPS URL by default?

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:25 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
Katharsascommented, Feb 11, 2016

You should have something similar to this in you pom:

<execution>
    <id>install node and npm</id>
    <goals>
        <goal>install-node-and-npm</goal>
    </goals>
    <phase>generate-resources</phase>
    <configuration>
        <nodeVersion>v4.1.1</nodeVersion>
        <npmVersion>3.3.3</npmVersion>
        <nodeDownloadRoot>https://nodejs.org/dist/</nodeDownloadRoot>
        <npmDownloadRoot>http://registry.npmjs.org/npm/-/</npmDownloadRoot>
    </configuration>
</execution>

Complete pom here: https://github.com/Katharsas/GMM/blob/master/pom.xml

1reaction
SlevinBEcommented, Sep 10, 2015

based on the sourcecode, it used http://registry.npmjs.org/npm/-/ by default for npm. So you have to specify the npm and nodejs download roots separately:

<nodeDownloadRoot>https://nodejs.org/dist/</nodeDownloadRoot>
<npmDownloadRoot>http://registry.npmjs.org/npm/-/</npmDownloadRoot>
Read more comments on GitHub >

github_iconTop Results From Across the Web

HTTPS | Node.js v19.2.0 Documentation
Default: host name of the target server, unless the target server is specified using an IP address, in which case the default is...
Read more >
Nodejs.org
No information is available for this page.
Read more >
How do I use a self signed certificate for a HTTPS Node.js ...
I am confused about how to generate the certificates I need to create a HTTPS server and send requests to it. My server...
Read more >
Node.js https.request() Function - GeeksforGeeks
Feature of https module: It is easy to get started and easy to use. It is widely used and popular module for making...
Read more >
How to Create an HTTPS NodeJS Web Service with Express
Learn how to set up an HTTPs NodeJS server using the Express.js web framework in this step-by-step guide!
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found