Blog

虾仁猪心

Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.

Quick Start

Create a new post

1
$ hexo new "My New Post"

More info: Writing

Run server

1
$ hexo server

More info: Server

Generate static files

1
$ hexo generate

More info: Generating

Deploy to remote sites

1
$ hexo deploy

More info: Deployment

智能网络机顶盒E900V22C基本参数

SoC S905L3A-B
RAM 2G
ROM 8G
Wi-Fi 2.4GHz、5GHz
Bluetooth Bluetooth5.0
有线网络 10/100M
HDMI HDMI 2.0
Dolby Audio 支持
阅读全文 »

node 版本管理工具 for Windows

https://nvm.uihtm.com/

https://github.com/coreybutler/nvm-windows

nvm version // 查看NVM版本

1
2
nvm node_mirror https://npmmirror.com/mirrors/node/ #  设置node阿里云镜像源
nvm npm_mirror https://npmmirror.com/mirrors/npm/ # 设置npm阿里云镜像源

nvm list available // 查看可安装的node版本
nvm list // 查看已安装的node版本
nvm install 版本号 // 安装node
nvm uninstall 版本号 // 卸载node
nvm use 版本号 // 切换使用node版本
nvm current // 当前使用node版本

查看 nvm 版本

nvm –version

列出所有可安装的 Node.js 版本

nvm list-remote

Windows 上使用

nvm list available

安装最新的 LTS 版本

nvm install –lts

安装特定版本

nvm install 18.17.0
nvm install 16.20.1

列出已安装的版本

nvm list

nvm ls

切换到特定版本

nvm use 18.17.0

设置默认版本

nvm alias default 18.17.0

查看当前使用的版本

nvm current

卸载特定版本

nvm uninstall 16.20.1

1
2
3
npm cache clean --force #清除npm缓存
npm config set registry https://registry.npmmirror.com #设置npm源为阿里云镜像源
npm config get registry #查看npm源

安装项目依赖
npm install

下载安装 git

git 下载地址:https://git-scm.com/downloads

配置用户名

1
git config --global user.name "Your Name"

设置邮箱

1
git config --global user.email "your_email@example.com"

列出当前用户的全局 Git 配置信息

1
git config --global --list

user.email=your_email@example.com
user.name=Your Name

连接 GitHub

创建 SSH 密钥

1
ssh-keygen -t rsa -C "your_email@example.com"

id_rsa 私钥保存在本地
id_rsa.pub 公钥复制到远程

查看公钥

1
cat ~/.ssh/id_rsa.pub

ssh-rsa ** your_email@example.com

复制公钥到 GitHub

测试 SSH 是否连接到 GitHub

1
ssh -T git@github.com

Hi Your Name! You’ve successfully authenticated, but GitHub does not provide shell access.