Init commit.

This commit is contained in:
Sleepwithoutbz
2025-12-07 20:49:50 +08:00
commit 98103d3163
76 changed files with 13888 additions and 0 deletions

View 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 # 关机重启