当前位置:网站首页>Yarn installation and use

Yarn installation and use

2022-07-06 11:35:00 Advanced diary

1. yarn Installation

// adopt node Package manager for yarn Global installation of 
npm install -g yarn

// Use... After installation 
yarn -version// see yarn edition 

2. yarn Initialize project

yarn init
 Usage and npm init It's the same 

3. Use yarn Install upgrade uninstall dependency

yarn add [package]       // install 
yarn upgrade [package]   // upgrade 
yarn remove [package]    // uninstall 

4. The installation project all depends on

yarn perhaps yarn install Download project dependencies 
原网站

版权声明
本文为[Advanced diary]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/187/202207060912569778.html