npm
設(shè)置為淘寶源-如果鏡像證書(shū)過(guò)期記得更換
npm config set registry https://registry.npmmirror.com
設(shè)置默認(rèn)源
npm config set registry https://registry.npmjs.org
查看全局包
npm list -g --depth 0
查看源
npm get registry
生成ssh key,先設(shè)置email和name,一路回車(chē)即可
ssh-keygen -t ed25519 -C "keyForZlh"
yarn
查看源
yarn config get registry
設(shè)置為淘寶源
yarn config set registry https://registry.npm.taobao.org
設(shè)置為默認(rèn)
yarn config set registry https://registry.yarnpkg.com
查看全局包
yarn global list
git設(shè)置用戶名和郵箱
git config --global user.name "username"
git config --global user.email "email"
生成koa2程序
npm install koa-generator -g
koa2 server
npm i
npm start
vue-cli創(chuàng)建項(xiàng)目
npm install -g @vue/cli
vue create hello-world
winpty vue.cmd create hello-world
vue ui