V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
V2EX  ›  fenglala  ›  全部回复第 6 页 / 共 6 页
回复总数  114
1  2  3  4  5  6  
@learnshare 多谢你的建议!

现在我的 bashrc 和 npmrc 如下

lala@ubu:~/projects/electron/my-app 09:49:34
$ cat ~/.npmrc
proxy=http://127.0.0.1:8123/
http-proxy=http://127.0.0.1:8123/
https-proxy=http://127.0.0.1:8123/
noproxy=localhost,127.0.0.1,192.168.,10.
strict-ssl=false
global.GLOBAL_AGENT=true
global.GLOBAL_AGENT.HTTP_PROXY=http://127.0.0.1:8123/
global.GLOBAL_AGENT.HTTPS_PROXY=http://127.0.0.1:8123/
lala@ubu:~/projects/electron/my-app 09:49:41
$ tail -n 10 ~/.bashrc

export ANDROID_HOME=/home/lala/AndroidSDK
export HTTP_PROXY=http://127.0.0.1:8123/
export HTTPS_PROXY=http://127.0.0.1:8123/
export http_proxy=http://127.0.0.1:8123/
export https_proxy=http://127.0.0.1:8123/
export GLOBAL_AGENT_HTTP_PROXY=http://127.0.0.1:8123/
export GLOBAL_AGENT_HTTPS_PROXY=http://127.0.0.1:8123/
export ELECTRON_GET_USE_PROXY=true
export ELECTRON_MIRROR="https://cdn.npm.taobao.org/dist/electron/"

但是还是卡在这个地方。但是另一方面这个 electron 依赖看起来已经下载下来了
lala@ubu:~/projects/electron/my-app/node_modules/electron 09:50:52
$ tree .
.
├── cli.js
├── electron.d.ts
├── index.js
├── install.js
├── LICENSE
├── package.json
└── README.md

0 directories, 7 files
lala@ubu:~/projects/electron/my-app/node_modules/electron 09:51:10
$ wc electron.d.ts
13622 61347 541692 electron.d.ts

所以要解决的这个问题应该不是下载依赖,而是如何解决连接问题。
@francis59 我试一下,多谢!搞完回复
@zjq123 用 polipo 将 socks5 代理转换成的 http 代理
@learnshare 好的我再试一下,多谢!完事了回复你。
@learnshare 还是不行,错误一样

```
lala@ubu:~/projects/electron/my-app 09:20:18
$ ALL_PROXY=http://127.0.0.1:8123 npm install --save-dev electron

> [email protected] postinstall /home/lala/projects/electron/my-app/node_modules/core-js
> node -e "try{require('./postinstall')}catch(e){}"

Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!

The project needs your help! Please consider supporting of core-js on Open Collective or Patreon:
> https://opencollective.com/core-js
> https://www.patreon.com/zloirock

Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)


> [email protected] postinstall /home/lala/projects/electron/my-app/node_modules/electron
> node install.js

(node:7836) UnhandledPromiseRejectionWarning: RequestError: connect ETIMEDOUT 13.229.188.59:443
at ClientRequest.<anonymous> (/home/lala/projects/electron/my-app/node_modules/got/source/request-as-event-emitter.js:178:14)
at Object.onceWrapper (events.js:313:26)
at ClientRequest.emit (events.js:228:7)
at ClientRequest.origin.emit (/home/lala/projects/electron/my-app/node_modules/@szmarczak/http-timer/source/index.js:37:11)
at TLSSocket.socketErrorListener (_http_client.js:406:9)
at TLSSocket.emit (events.js:223:5)
at emitErrorNT (internal/streams/destroy.js:92:8)
at emitErrorAndCloseNT (internal/streams/destroy.js:60:3)
at processTicksAndRejections (internal/process/task_queues.js:81:21)
(node:7836) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:7836) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
npm WARN [email protected] No description
npm WARN [email protected] No repository field.

+ [email protected]
added 85 packages from 91 contributors and audited 102 packages in 80.372s

2 packages are looking for funding
run `npm fund` for details

found 0 vulnerabilities

```
@learnshare 谢谢提议,我试一下
2019 年 9 月 18 日
回复了 fenglala 创建的主题 VPS ip 被 ban,为什么呢
我怎么把这个帖子转到<a href="https://www.v2ex.com/go/monthly">/go/monthly</a>呢
2019 年 7 月 20 日
回复了 fenglala 创建的主题 Linux 查看,修改 Android 源码(.c, .h, .mk)你们用的什么 IDE?
@hhhsuan @Android2MCU @socradi @Destiny97 谢谢各位的回复。
vim 可以试试,平时 vs,jetbrains 家我都装 vim 插件用的,所以不会有不习惯的问题。就是真正的 vim 装补全高亮插件比较麻烦。
VS CODE 的话我暂时没有桌面的 Linux 环境,只能 ssh 过去而且不方便装桌面环境,所以暂时用不了。
同事们都是用的 source insight,个人想试试 IDE。
打算 source insight 先用着,同时试试 vim。
今天搜相关话题搜到了 Intellij:
https://stackoverflow.com/questions/16727607/can-we-use-android-studio-for-aosp-development
不过这个是 java 的,不知道内核部分代码能不能用。等回头有机会了试试。
2019 年 6 月 17 日
回复了 bxb100 创建的主题 全球工单系统 搜狗输入法 WIN 10 PC 端建议
win10 自带输入法有问题,gtav 里边全屏状态聊天不能打中文,搜狗等第三方输入法就可以。
1  2  3  4  5  6  
About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2513 Online   Highest 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 16ms · UTC 00:25 · PVG 08:25 · LAX 17:25 · JFK 20:25
♥ Do have faith in what you're doing.