44 lines
1002 B
Markdown
44 lines
1002 B
Markdown
# element-call-dev
|
||
|
||
https://flightaware.com/live/flight/map/SPAR19/history/20220802/1127Z
|
||
|
||
## nodejs
|
||
|
||
```
|
||
curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash -
|
||
|
||
sudo apt-get install -y nodejs
|
||
|
||
安装 yarn
|
||
|
||
sudo apt-get install gcc g++ make
|
||
curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | gpg --dearmor | sudo tee /usr/share/keyrings/yarnkey.gpg >/dev/null
|
||
echo "deb [signed-by=/usr/share/keyrings/yarnkey.gpg] https://dl.yarnpkg.com/debian stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
|
||
sudo apt-get update && sudo apt-get install yarn
|
||
|
||
|
||
|
||
npm install -g http-proxy-to-socks
|
||
# 然后使用这个工具监听8002端口,支持http代理,然后所有8002的http代理数据都将转换成socks的代理数据发送到1081上
|
||
hpts -s 127.0.0.1:1080 -p 8002
|
||
# 最后设置npm代理为8080
|
||
npm config set proxy http://127.0.0.1:8002
|
||
npm config set https-proxy http://127.0.0.1:8002
|
||
|
||
清除npm代理
|
||
|
||
npm config delete proxy
|
||
npm config delete https-proxy
|
||
|
||
```
|
||
|
||
## call
|
||
|
||
```
|
||
|
||
|
||
|
||
```
|
||
|
||
|