当前位置:网站首页>Yarn package management tool
Yarn package management tool
2022-06-26 10:18:00 【pzy_ six hundred and sixty-six】
install
install yarn: npm install -g yarn
install yarn Of registry Switch tools : npm install -g yrm
Use
View available sources :yrm ls
Switch source :yrm use Source name
Add source :yrm add testResource https://testResource.com
Delete source :yrm del testResource
Initialize project :yarn init
Install all dependencies :yarn
Add dependency :
yarn add [package]
yarn add [package]@[version]
yarn add [package]@[tag]
Add dependencies to different dependency categories
yarn add [package] --dev # dev dependencies
yarn add [package] --peer # peer dependencies
Update dependencies :
yarn up [package]
yarn up [package]@[version]
yarn up [package]@[tag]
Clear all local caches yarn cache clean
Delete dependency
yarn remove [package]
to update Yarn noumenon
yarn set version latest
yarn set version from sources
Sign in npm Warehouse yarn npm login
Release package to npm Warehouse yarn npm publish
Log out npm Warehouse yarn npm logout
边栏推荐
- Index summary of blog articles -- Industrial Internet
- Go learning notes (83) - code specification and common development skills
- String类intern()方法和字符串常量池
- 调用api接口生成不同颜色的微信小程序二维码
- What is in the method area - class file, class file constant pool, runtime constant pool
- 【无标题】
- Solution to the problem of compilation error due to repeated third-party package names
- Extracting public fragments from thymeleaf
- Various errors encountered by tensorflow
- Problems encountered by jupyter notebook
猜你喜欢

利用foreach循环二维数组

Extracting public fragments from thymeleaf

Specific implementation comparison between different programming languages

微软 Edge 浏览器 IE 模式标签页出现卡死情况,已通过回滚更新修复

P1296 whispers of cows (quick row + binary search)

国际化配置

Go learning notes (83) - code specification and common development skills

首批12家企业入驻!广州首个集中展销老字号产品专柜开张

Automated testing -- Introduction and use of pytest itself and third-party modules

Omni channel, multi scenario and cross platform, how does app analyze channel traffic with data
随机推荐
Jupyter Notebook遇到的问题
全渠道、多场景、跨平台,App如何借助数据分析渠道流量
Tensorflow dynamically allocates video memory
cento7.7安装ELK简单记录
Differences between JVM, Dalvik and art
Record the handling of oom problems caused by too many threads at one time
美国总统签署社区安全法案以应对枪支问题
自动化测试——pytest框架介绍及示例
MySQL项目8总结
What are the symbolic and direct references of the JVM
cmake / set 命令
Introduction to libmagic
A list of common methods for customizing paint and canvas of view
Nested recyclerview in nestedscrollview automatically slides to the bottom after switching
[depth first search] 312 Poke balloon
2. merge two ordered arrays
druid数据源实现后台监控
[binary search] 4 Find the median of two positive arrays
SSM项目小例子,SSM整合图文详细教程
Dialog centered