Just something miscellaneous for ghlandy personal usage.
linux 安装 fnm
下载 https://github.com/Schniz/fnm/releases/download/v1.37.2/fnm-linux.zip 解压到 $HOME/.local/fnm/
下,并添加到 $PATH
windows 安装 fnm
下载 https://github.com/Schniz/fnm/releases/download/v1.37.2/fnm-windows.zip
解压到 D:\.fnm\
, 将该路径添加到 PATH
设置 PowerShell 的配置文件
# code 为安装 vs code 之后的命令行打开方式
# $PROFILE 为 PowerShell 的配置文件,默认为 C:\Users\<USER>\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1
code $PROFILE
# 添加配置
fnm env --use-on-cd --shell powershell | Out-String | Invoke-Expression
# 修改当前用户 PowerShell 执行策略
# https://learn.microsoft.com/zh-cn/powershell/module/microsoft.powershell.core/about/about_execution_policies?view=powershell-7.4#change-the-execution-policy
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
设置 .bashrc
(Git-Bash)
eval "$(fnm env --use-on-cd --shell bash)"
fnm
下载 nodejs
fnm install 20
项目中 husky
运行找不到 node
、npx
的问题,在家目录添加 .config/husky/init.sh
文件, https://typicode.github.io/husky/zh/how-to.html#启动文件
eval "$(fnm env --use-on-cd --shell bash)"
reg add "HKEY_CURRENT_USER\Software\Classes\CLSID\{86CA1AA0-34AA-4E8B-A509-50C905BAE2A2}\InprocServer32" /f
或保存 .reg 文件后双击打开
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Classes\CLSID\{86CA1AA0-34AA-4E8B-A509-50C905BAE2A2}\InprocServer32]
@=""
重启资源管理器
如果需要恢复:
Windows Registry Editor Version 5.00
[-HKEY_CURRENT_USER\Software\Classes\CLSID\{86CA1AA0-34AA-4E8B-A509-50C905BAE2A2}]
获取系统版本信息 start msinfo32
启动密钥输入框 start slui 3
https://mi.nurluq.vip/liebiao/DFAD12A48990F5F6
https://kms.cx/ https://www.moerats.com/kms/
exe 下载地址:https://www.google.com/chrome/?standalone=1&platform=win64
deb 包下载地址:
https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
rpm 包下载地址:
https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm