Compare commits

...

4 Commits

Author SHA1 Message Date
831beab49d go 2022-09-03 19:53:06 +08:00
088c721945 小修改 2022-09-03 18:34:29 +08:00
e98b25d31e update 2022-09-03 18:34:17 +08:00
e44b73eab0 重命名 2022-09-03 18:06:05 +08:00
6 changed files with 74 additions and 3 deletions

View File

@ -13,7 +13,7 @@ timezone: Asia/Shanghai
# URL
## Set your site url here. For example, if you use GitHub Page, set url as 'https://username.github.io/project'
url: http://zhao.local/~xin
url: http://zhao/~xin
root: /~xin/
permalink: :title/
permalink_defaults:

View File

@ -7,7 +7,6 @@ categories:
- Linux
tags:
- Arch Linux
- pacman
date: 2022-08-31 14:08:30
---

View File

@ -0,0 +1,13 @@
---
title: 常用软件
categories:
- Linux
keywords: []
tags: []
date: 2022-09-03 19:15:32
---
# 媒体
- [VLC](https://www.videolan.org/index.zh.html)
- [OBS](https://obsproject.com/zh-cn/)

View File

@ -119,3 +119,11 @@ deb https://mirrors.ustc.edu.cn/debian/ bullseye-updates main contrib non-free
deb https://mirrors.ustc.edu.cn/debian-security bullseye-security main contrib non-free
# deb-src http://mirrors.ustc.edu.cn/debian-security/ bullseye-security main non-free contrib
```
# Python
见 {% post_link Python/Python环境搭建 %}
# Node.js
见 {% post_link 'Node.js/Node.js环境搭建' %}

View File

@ -0,0 +1,51 @@
---
title: Node.js 环境搭建
categories:
- Node.js
keywords:
- Node.js
- npm
tags:
- Node.js
date: 2022-09-03 18:18:10
---
# 安装
``` sh
sudo pacman -S nodejs npm
```
# 配置
用户配置文件 `$HOME/.npmrc`
``` conf
fund=false
init.author.email=username@example.com
init.author.name=Your Name
init.version=0.0.1
init.license=MIT
loglevel=error
prefix=~/.node_modules
registry=http://mirrors.cloud.tencent.com/npm/
```
说明:
- 期中 init 开头的是 `npm init` 命令相关参数的默认设定
- fund 控制是否提示某包寻求捐赠支持
- prefix 是用户个人依赖的安装位置
- loglevel
- registry 安装源
- http://mirrors.cloud.tencent.com/npm/
- https://registry.npm.taobao.org
除了直接修改这个文件,还可以通过命令的方式调整文件中的设定,如:
``` sh
npm config set fund false
npm config set registry http://mirrors.cloud.tencent.com/npm/
```
另外,请将 `$HOME/.node_modules/bin` 放进你的环境参数 PATH 中!

View File

@ -1,5 +1,5 @@
---
title: Pyhton 环境搭建
title: Python 环境搭建
categories:
- Python
keywords: