Init commit.
This commit is contained in:
24
content/misc/First-blog.md
Normal file
24
content/misc/First-blog.md
Normal file
@@ -0,0 +1,24 @@
|
||||
+++
|
||||
date = '2025-12-07T20:27:31+08:00'
|
||||
draft = false
|
||||
title = 'First Blog'
|
||||
+++
|
||||
|
||||
# NodeJS 安装
|
||||
|
||||
1. 安装 *nodejs*
|
||||
``` shell
|
||||
# 连接NodeSource仓库
|
||||
$ curl -fsSL https://deb.nodesource.com/setup_lts.x | sudo -E bash -
|
||||
apt list nodejs
|
||||
```
|
||||
2. `npm install`时连接超时
|
||||
``` shell
|
||||
# 设置为淘宝镜像
|
||||
npm config set registry http://registry.npmmirror.com
|
||||
# 或者是调整代理
|
||||
rm -rf ~/.npmrc # 删除配置文件
|
||||
npm cache clean --force # 清理缓存
|
||||
npm config rm proxy # 清理代理
|
||||
npm config rm https-proxy
|
||||
reboot # 关机重启
|
||||
Reference in New Issue
Block a user