This commit is contained in:
赵鑫 2022-09-03 19:53:06 +08:00
parent 088c721945
commit 831beab49d
2 changed files with 40 additions and 3 deletions

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

@ -10,9 +10,13 @@ tags:
date: 2022-09-03 18:18:10 date: 2022-09-03 18:18:10
--- ---
# 环境搭建 # 安装
## 配置 ``` sh
sudo pacman -S nodejs npm
```
# 配置
用户配置文件 `$HOME/.npmrc` 用户配置文件 `$HOME/.npmrc`
@ -20,8 +24,28 @@ date: 2022-09-03 18:18:10
fund=false fund=false
init.author.email=username@example.com init.author.email=username@example.com
init.author.name=Your Name init.author.name=Your Name
init.version=0.0.1
init.license=MIT init.license=MIT
init.version=0.1.0
loglevel=error loglevel=error
prefix=~/.node_modules 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 中!