Comments (6)
Sorry about that. To support this it looks like we would need to read .npmrc
and if there is a http-proxy
or https-proxy
set we should pass it to the request options here: https://github.com/request/request#proxies
Should be pretty easy to implement. Patch welcome!
from electron-prebuilt.
Hi, all.
The request
module supports http_proxy
and https_proxy
on environment variables.
https://www.npmjs.com/package/request#controlling-proxy-behaviour-using-environment-variables
I tried setting them and succeeded to install via proxy.
from electron-prebuilt.
@uchidake nice find! I added a note to the readme
from electron-prebuilt.
I think it would be better to support {{.npmrc}} settings since {{node install.js}} is kicked off as part of an "postinstall" npm script, meaning the install fails because of a proxy issue even if the {{.npmrc}} file contains all of the necessary proxy information.
It's not always just the proxy as well as the {{ca}} and/or {{cafile}} configurations might be required as well.
from electron-prebuilt.
this landed in electron-download 1.4.0
from electron-prebuilt.
I'm using 1.4.12 on Windows and still get exactly the same problem. I've set HTTP_PROXY and HTTPS_PROXY correctly (npm is using them to get to its server) but I still fail with a 403 in the electron post-build step. Any ideas?
from electron-prebuilt.
Related Issues (20)
- OpenBSD as a supportet platform? HOT 2
- Unable to install Electron with the quick-start tutorial HOT 7
- "sudo npm install -g electron" fails HOT 1
- Electron not installing (Windows 10) HOT 2
- Got stuck after npm install -g HOT 1
- Error while installing npm in windows 10 HOT 1
- Mac: Failed at the [email protected] postinstall script 'node install.js'. HOT 4
- npm install hangs HOT 3
- Dependency to @types/node makes electron package incompatible with typescript projects not using commonjs HOT 11
- Can't install electron 1.7.1 locally using npm 5 HOT 10
- Install on Bash on Ubuntu on Windows (WSL) HOT 13
- Postinstall script failing HOT 22
- Error: Generated checksum for "electron-v1.4.13-linux-x64.zip" did not match expected checksum. HOT 11
- Prebuilt electron package for Ubuntu 10.04 32 bits HOT 1
- node (vs. nodejs) is required when installing electron HOT 5
- Can't install in Windows10 HOT 1
- Change electron binary path via environment variable? HOT 2
- Electron not installing on Mac Os High Sierra HOT 1
- npm ERR! [email protected] postinstall
- Error while installing electron on Mac
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from electron-prebuilt.