npm
设置为淘宝源
npm config set registry https://registry.npm.taobao.org
设置默认源
npm config set registry https://registry.npmjs.org
查看全局包
npm list -g --depth 0
yarn
查看源
yarn config get registry
设置为淘宝源
yarn config set registry https://registry.npm.taobao.org
设置为默认
yarn config set registry https://registry.yarnpkg.com
查看全局包
yarn global list
git设置用户名和邮箱
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创建项目
npm install -g @vue/cli
vue create hello-world
winpty vue.cmd create hello-world
vue ui
网友评论