Unable to download NWjs

See original GitHub issue

I got some troubles when building with following script. It always throw “Unable to download Nwjs”, but i can download it by wget.

// build.js
 var NwBuilder = require('nw-builder');          
 var nw = new NwBuilder({
     files: './src/**/**', // use the glob format
     platforms: ['linux64'],
     version: '0.14.6'
 });
  
 //Log stuff you want
  
 nw.on('log',  console.log);
  
 // Build returns a promise
 nw.build().then(function () {
    console.log('all done!');
 }).catch(function (error) {
     console.error(error);
 });
(node:20081) DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpdir() instead.
Using v0.14.6 (sdk)
Create cache folder in /tmp/test/cache/0.14.6-sdk
Downloading: http://dl.nwjs.io/v0.14.6/nwjs-sdk-v0.14.6-linux-x64.tar.gz
undefined
Unable to download NWjs.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:3
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

7reactions
schuhschuhcommented, Jan 6, 2017

This can be fixed on the users side by adding the option downloadUrl: 'https://dl.nwjs.io/' to your build script. This overwrites the default that uses HTTP.

2reactions
ghostcommented, Jan 8, 2017

for now, you can change the download link in the lib/index.js file line 35.

change it to ‘https://dl.nwjs.io/’ and you should be able to build.

thanks to schuhschuh for putting me on the right track.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to download NWjs · Issue #418 · nwutils/nw-builder
I got some troubles when building with following script. It always throw "Unable to download Nwjs", but i can download it by wget....
Read more >
Downloading and installing NW.js
Installing NW.js is pretty simple, but there are many ways to do it. One of the easiest ways is probably to run npm...
Read more >
NW.js
Download Stable for Linux (ia32) ... NW.js (previously known as node-webkit) lets you call all Node.js modules directly from DOM and enables a...
Read more >
Unable to download wasm_fuzzer from google storage
I am new to nw.js, I was going through the online doc to get the code and sync from Google storage, but I...
Read more >
How to Update NW.js to Dramatically improve Game ...
Thanks! Although I'm currently having an issue with downloading version 48.4. When I click on previous releases from https://nwjs.io/downloads/ ...
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