Compare commits
4 Commits
0c1b6d4881
...
831beab49d
Author | SHA1 | Date | |
---|---|---|---|
831beab49d | |||
088c721945 | |||
e98b25d31e | |||
e44b73eab0 |
@ -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:
|
||||
|
@ -7,7 +7,6 @@ categories:
|
||||
- Linux
|
||||
tags:
|
||||
- Arch Linux
|
||||
- pacman
|
||||
date: 2022-08-31 14:08:30
|
||||
---
|
||||
|
||||
|
13
source/_posts/Linux/常用软件.md
Normal file
13
source/_posts/Linux/常用软件.md
Normal 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/)
|
@ -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环境搭建' %}
|
||||
|
51
source/_posts/Node.js/Node.js环境搭建.md
Normal file
51
source/_posts/Node.js/Node.js环境搭建.md
Normal 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 中!
|
@ -1,5 +1,5 @@
|
||||
---
|
||||
title: Pyhton 环境搭建
|
||||
title: Python 环境搭建
|
||||
categories:
|
||||
- Python
|
||||
keywords:
|
Loading…
Reference in New Issue
Block a user