# 配置 **Repository Path**: KissedBySnow/Configuration ## Basic Information - **Project Name**: 配置 - **Description**: 备份常用工具的配置,用于在重置后快速恢复。 - **Primary Language**: Shell - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-09-29 - **Last Updated**: 2023-09-22 ## Categories & Tags **Categories**: Uncategorized **Tags**: Windows, Mac, settings ## README # 配置 Configuration #### 介绍 备份常用工具的配置,用于在重置后快速恢复。 #### 安装教程 ```sh git clone git@gitee.com:KissedBySnow/Configuration.git ``` ## Mac ### 1 [oh-my-zsh](https://github.com/ohmyzsh/ohmyzsh) 漂亮的命令行提示符 ```sh sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" ``` ### 2 [nvm](https://github.com/nvm-sh/nvm)(Node Version Manager) ```sh curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash source ~/.zshrc ``` #### Use Example ```sh $ nvm use 16 ## Now using node v16.9.1 (npm v7.21.1) $ node -v ## v16.9.1 ``` ### 3 node ```sh nvm install --lts ``` ### 4 nrm(npm 源管理工具) 用于快速在 npm 源之间进行切换 #### Install ```sh npm install -g nrm ``` [Resolve installation failures](https://stackoverflow.com/questions/51967335/npm-install-permission-denied-macos) #### Use 快手内部源 ```sh nrm add kwai https://npm.corp.kuaishou.com/ nrm use kwai ``` 查看当前 npm 源 ```sh nrm ls ``` ```http npm ---------- https://registry.npmjs.org/ yarn --------- https://registry.yarnpkg.com/ tencent ------ https://mirrors.cloud.tencent.com/npm/ cnpm --------- https://r.cnpmjs.org/ taobao ------- https://registry.npmmirror.com/ npmMirror ---- https://skimdb.npmjs.com/registry/ * kwai --------- https://npm.corp.kuaishou.com/ ``` ## Windows ### 1 pnpm ```sh npm install -g pnpm ``` ### 2 cnpm ```sh npm install -g cnpm --registry=https://registry.npmmirror.com ``` ```powershell C:\Users\hp>cnpm -v cnpm@8.1.0 (C:\Users\hp\AppData\Roaming\npm\node_modules\cnpm\lib\parse_argv.js) npm@6.14.17 (C:\Users\hp\AppData\Roaming\npm\node_modules\cnpm\node_modules\npm\lib\npm.js) node@16.15.0 (J:\Node.js-v16.15.0\node.exe) npminstall@6.2.0 (C:\Users\hp\AppData\Roaming\npm\node_modules\cnpm\node_modules\npminstall\lib\index.js) prefix=C:\Users\hp\AppData\Roaming\npm win32 x64 10.0.19043 registry=https://registry.npmmirror.com ``` ### 3 vue cli ```sh cnpm install -g @vue/cli ``` ```powershell C:\Users\hp>vue -V @vue/cli 5.0.4 ```