-
Notifications
You must be signed in to change notification settings - Fork 880
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use https://nodejs.org/ as defaultDownloadRoot #278
Comments
It does not solve my problem. I get: I assume it should use EDITI resolved it by using |
@filip1323: This is AFAIK due to #276. |
Looks like this PR should fix this: https://github.com/eirslett/frontend-maven-plugin/pull/270/files |
I was able to download node from the new download root (https://nodejs.org/dist - but we are using node v0.10.36 and npm 2.3.0 and Oracle JDK 1.6 However, now I encounter this error from the build server where we are running IBM JDK 1.6 [ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:0.0.25:install-node-and-npm (install node) on project famsformff-client: Could not download Node.js: Could not download https://nodejs.org/dist/v0.10.36/node-v0.10.36-linux-x64.tar.gz: RSA premaster secret error: Illegal key size or default parameters -> [Help 1] I discovered I just needed to update the security policy jars per this doc: http://www-01.ibm.com/support/docview.wss?uid=swg21663373 and then my build worked successfully with the new https download roots I'm using plugin version 0.0.25 |
What about npm downloadRoot? It tries to download from https://nodejs.org/dist/npm-1.4.21.tgz but file is not there anymore, neither in https://nodejs.org/dist/npm/. How did you change that? |
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:
|
Great, thanks! |
👍 |
They fixed the download repo links, see nodejs/nodejs.org#124 |
@eirslett You still may want to change this setting, as https will be the default from now on (saving you one 301 redirect). |
Thanks for the update downloading node from http://nodejs.org/dist/ is working again - what an adventure;) |
Don't know if this is the right place to ask, but where do i fetch latest npm from? http://nodejs.org/dist/npm/ only has npm up to version 1.4.9, the current version is 3.3.3. Nodejs v4.1.1 ships with npm 2.14.3. All tutorials tell me "use the windows installer to get npm"... Edit: Nevermind, http://registry.npmjs.org/npm/-/ is the way to go. Maybe update the Readme file? |
I think #270 solved this issue. |
Hello, Where i have to add the following lines : https://nodejs.org/dist/ If i choose to download manually the file. Where should i put it for not having anymore the above error ? For information, i am using maven for compiling a some code sources. Thank you for your help. Regi4life |
Where i have to define the informations you specify above ? Thank you for your help. Best regards, |
You should have something similar to this in you pom:
Complete pom here: https://github.com/Katharsas/GMM/blob/master/pom.xml |
Thank for replying quickly. I have maybe a proxy problem. ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:0.0.26:install-node-and-npm (install-node-and-npm) on project openam-ui-ria: Could not download Node.js from: https://nodejs.org/dist/v4.2.3/win-x86/node.exe: Could not download https://nodejs.org/dist/v4.2.3/win-x86/node.exe: Connect to nodejs.org:443 [nodejs.org/104.20.23.46, nodejs.org/104.20.22.46] failed: Connection timed out: connect -> [Help 1] Could i install Node.js manually in my maven? Thank you for your help. Best regards, |
Yes you can. Lets assume you have a config like this:
You need to comment out the first execution (install-node-and-npm) and instead install node.js with npm manually. |
It seems it is going better by just copying the "exe" in the "node" folder and when i rebuid, i have the details below : [DEBUG] Configuring mojo 'com.github.eirslett:frontend-maven-plugin:0.0.26:install-node-and-npm' with basic configurator --> |
Hi, And this artifactory links are password protected.. the credentials that I am using in settings.xml is not helpful here,and I an getting the error like http://abc.artifactory.com/......./latest-v8.x/win-x86/node.exe: Got error code 401 from the server. -> [Help 1] However the link is valid and I am able to access the node.exe from the link. Could you please help me on this. |
Hi all, I am also using artifactory and getting 401 . I have serverid from settings.xml in configuration. |
Hi all,
DO's.
I hope it will help you guys... :) Regards, |
hi, I have the same problem:
error:
|
@mariem13 please update from 0.0.22 to the latest version of the frontend-maven-plugin (1.6) |
@mriehema Thx for reply, i tried with version 1.6 but it find new error in version of maven
I use version 3.2.5 |
Currently, http://nodejs.org/dist/ redirects to https://nodejs.org/en/blog/. Adding
to my pom.xml solved the problem. Maybe it would be an option to use the HTTPS URL by default?
The text was updated successfully, but these errors were encountered: