Git 常用命令
Git 全局设置:
git config --global user.name "嗷大猫"
git config --global user.email "875852644@qq.com"
git init
git add .
git commit -m "first commit"
git remote add origin https://gitee.com/neoj/xxx.git
git push -u origin "master"
.gitignore 添加以下配置
.vs
*.user
*.xml
[Bb]in/
[Oo]bj/
packages/
root/
1.安装 node.js 环境14版本以上.
// 配置npm源
npm config set registry https://registry.npm.taobao.org
npm config set disturl https://npm.taobao.org/dist
npm config set electron_mirror https://npm.taobao.org/mirrors/electron/
npm config set sass_binary_site https://npm.taobao.org/mirrors/node-sass/
npm config set phantomjs_cdnurl https://npm.taobao.org/mirrors/phantomjs/
常用命令
npm init
npm install
npm update
npm install XXX --save
npm uninstall -g XXX
npm run XXX
npm ls -g
npm publish/login/logout
npm -h
2.安装yarn 包管理器
npm install -g yarn
yarn -v
// 配置yarn源
yarn config set registry https://registry.npm.taobao.org -g
yarn config set disturl https://npm.taobao.org/dist -g
yarn config set electron_mirror https://npm.taobao.org/mirrors/electron/ -g
yarn config set sass_binary_site https://npm.taobao.org/mirrors/node-sass/ -g
yarn config set phantomjs_cdnurl https://npm.taobao.org/mirrors/phantomjs/ -g
yarn config set chromedriver_cdnurl https://cdn.npm.taobao.org/dist/chromedriver -g
yarn config set operadriver_cdnurl https://cdn.npm.taobao.org/dist/operadriver -g
yarn config set fse_binary_host_mirror https://npm.taobao.org/mirrors/fsevents -g
常用命令
yarn init
yarn install
yarn upgrade XXX
yarn global add XXX
yarn global remove XXX
yarn run XXX
yarn info --all
yarn publish/login/logout
yarn -h
3.VScode 终端无法执行命令权限修复
powershell终端里直接输入以下命令.
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
Set-ExecutionPolicy -ExecutionPolicy AllSigned
Get-ExecutionPolicy -List