yarn安装vue的例子

在Nodejs环境下,通过npm install -g yarn 命令进行全局安装

 

yarn安装比npm更快

例如:
yarn version
yarn init
yarn install
yarn add vue
yarn add vue-router
yarn remove vue-router
CLI 命令比较
npm    Yarn
npm install    yarn install
(N/A)    yarn install --flat
(N/A)    yarn install --har
(N/A)    yarn install --no-lockfile
(N/A)    yarn install --pure-lockfile
npm install [package]    (N/A)
npm install --save [package]    yarn add [package]
npm install --save-dev [package]    yarn add [package] [--dev/-D]
(N/A)    yarn add [package] [--peer/-P]
npm install --save-optional [package]    yarn add [package] [--optional/-O]
npm install --save-exact [package]    yarn add [package] [--exact/-E]
(N/A)    yarn add [package] [--tilde/-T]
npm install --global [package]    yarn global add [package]
npm rebuild    yarn install --force
npm uninstall [package]    (N/A)
npm uninstall --save [package]    yarn remove [package]
npm uninstall --save-dev [package]    yarn remove [package]
npm uninstall --save-optional [package]    yarn remove [package]
npm cache clean    yarn cache clean
rm -rf node_modules && npm install    yarn upgrade
参考地址:https://yarnpkg.com/zh-Hans/
原文:https://blog.csdn.net/guoquanyou/article/details/61199935 
 

你可能感兴趣的:(yarn安装vue的例子)