Qwas Notes
Attachments
History
Blame
View Source
Documentation
About An Otter Wiki
Toggle dark mode
Login
Home
A - Z
Changelog
Page Index
C语言
C语言malloc和free函数
C语言的转换说明
C语言编译环境检测
char类型
WSL
WSL使用
WSL导入导出(备份恢复)
c-algorithm
递归算法设计数值转换
c-problem
problem-05
cpp
c++入门
git
patch
worktree
linux
mount
查看端口占用情况
openwrt
openwrt 使用
openwrt 使用 nginx
proxy
Python
Ubuntu镜像配置
docker
nodejs
ssh
开发环境配置
Linux本地开发环境配置
Linux远程开发环境配置
高数
数学公式
AI
Awesome-command
Home
SQLite学习
SSH
Supabase
Ubuntu 系统升级
Windows11 Android
alias
anaconda 使用
archivebox 使用
aws测速
bookmarks
curl 的用法
flex布局超出显示省略号
frp
fusion
kms
ollama
public-key
traceroute 与 tracert 路由追踪
在线IDE协作平台
技术栈
电脑端阅读器对比
nodejs
d14d54
Commit
d14d54
2024-10-16 10:04:30
Qwas
: 修改 Node.js 代理配置
proxy/nodejs.md
..
@@ 2,6 2,12 @@
## npm 代理配置
+
```sh
+
npm config set proxy http://127.0.0.1:7890 # 设置代理
+
```
+
+
## 设置镜像
+
设置
```sh
@@ 18,7 24,18 @@
pnpm config get registry
```
-
## node-sass
+
## 常用二进制包镜像设置
+
+
```sh
+
npm set sass_binary_site https://cdn.npmmirror.com/binaries/node-sass # node-sass 二进制包镜像
+
npm set chromedriver_cdnurl https://cdn.npmmirror.com/binaries/chromedriver # chromedriver 二进制包镜像
+
npm set operadriver_cdnurl https://cdn.npmmirror.com/binaries/operadriver # operadriver 二进制包镜像
+
npm set phantomjs_cdnurl https://cdn.npmmirror.com/binaries/phantomjs # phantomjs 二进制包镜像
+
npm set fse_binary_host_mirror https://cdn.npmmirror.com/binaries/fsevents # fsevents 二进制包
+
npm set electron_mirror https://cdn.npmmirror.com/binaries/electron/ # electron 二进制包镜像
+
```
+
+
### node-sass
```sh
npm config set sass_binary_site https://cdn.npmmirror.com/binaries/node-sass/
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9