Comments (5)
OK, so I set the http_proxy
and https_proxy
environment variables and the install worked. 🙌
It might be a good idea to add this info to the docs / error message. Maybe this will help someone in the future.
from dugite.
I just found this issue desktop/dugite-native#62 where @seriouz seams to have the same problem.
from dugite.
@MartinBenninger, I have just tried it on my Windows 10 image, and it worked for me.
$ mkdir dugite-tmp && cd dugite-tmp && node --version && npm --version && npm init -y && npm i -S dugite
v8.7.0
5.4.2
Wrote to C:\Users\kittaakos\dev\dugite-tmp\package.json:
{
"name": "dugite-tmp",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],
"author": "",
"license": "ISC"
}
> [email protected] postinstall C:\Users\kittaakos\dev\dugite-tmp\node_modules\dugite
> node ./script/download-git.js
Downloading Git from: https://github.com/desktop/dugite-native/releases/download/v2.15.0-rc1/dugite-native-v2.15.0-win32-25.tar.gz
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN [email protected] No description
npm WARN [email protected] No repository field.
+ [email protected]
added 75 packages in 19.187s
from dugite.
I guess this is a proxy issue then. I am currently behind a corporate proxy but I was at home (no proxy) when I ran it on Linux.
I have configured my proxy with npm and don't have issues downloading or installing other packages. My guess is that the download-git.js
script is attempting to download something without using the proxy configuration.
Is there a way that I could configure the proxy for the download script?
from dugite.
If someone wants to refine the error message, this is the code to change:
Lines 62 to 65 in 397664c
To handle the ETIMEDOUT
message better you could write something like this:
req.on('error', function (error) {
if (error.message.code === 'ETIMEDOUT') {
console.log(`A timeout has occurred while downloading '${config.source}' - check your internet access and try again`, error)
} else {
console.log(`Error raised while downloading ${config.source}`, error)
}
process.exit(1)
})
from dugite.
Related Issues (20)
- Use in React Native HOT 1
- dugite/package.json: Unexpected end of JSON input in Electron 11 beta HOT 3
- GitProcess.exec cause CPU 100% and never resolve in Electron HOT 2
- Return process or PID in IGitResult HOT 7
- Slow tests fail on missing repository HOT 2
- Stream Commands to GitProcess HOT 3
- Any way of stopping Dugite from downloading Git? HOT 2
- ChainAlert: npm package release (1.108.0) has no matching tag in this repo HOT 2
- Simultaneous async git operations - best practice? HOT 1
- Proxy support seems to have regressed HOT 3
- How to run git command interactively?
- 'subtree' is not a git command
- Github Desktop Dugite fails on arm64 linux HOT 1
- rmSync is not defined HOT 1
- `execTask.cancel()` doesn't kill the git process properly HOT 4
- Missing require in dugite/script /download-git.js HOT 1
- Git exec takeup 500MB when installed with pnpm HOT 1
- Drop `electron` from repository tags HOT 3
- Request: Publish version 2.5.2 to the npm package registry HOT 2
- Unable to use git difftool? HOT 1
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 dugite.