ubuntu安装yarn

news/2024/10/21 5:48:13/

参考https://phoenixnap.com/kb/how-to-install-yarn-ubuntu
Follow the steps below to install Yarn using Corepack:

  1. Ensure your Node.js version is up-to-date.

node -v

Corepack requires Node.js 16.10 or later. If the output shows an older version, update Node.js.

Checking the Node.js version.
2. Start Corepack by typing:

corepack enable

Note: If Corepack does not exist on your system, install it by typing:

sudo npm install -g corepack

  1. Install the latest version of Yarn with the command below:

corepack prepare yarn@stable --activate

Installing Yarn with Corepack.
4. Type the following command to test the installation and check the Yarn version:

yarn --version

Checking Yarn version.
This process installs the latest stable version of Yarn. Run the following command to update the binary to the latest version:

yarn set version stable


http://www.ppmy.cn/news/106493.html

相关文章

MGRE 综合实验

配置IP的地址 [R1-GigabitEthernet0/0/0]int g0/0/0 [R1-GigabitEthernet0/0/0]ip add 192.168.1.1 24 [R1-GigabitEthernet0/0/0]int s4/0/0 [R1-Serial4/0/0]ip add 15.0.0.1 24 [R2]int s 4/0/0 [R2-Serial4/0/0]ip add 25.0.0.1 24 [R2-Serial4/0/0]int g 0/0/0 [R2-Giga…

华为OD机试真题B卷 Java 实现【字符统计】,附详细解题思路

一、题目描述 输入一个只包含小写英文字母和数字的字符串,按照不同字符统计个数由多到少输出统计结果,如果统计的个数相同,则按照ASCII码由小到大排序输出。 数据范围:字符串长度满足 1≤len(str)≤1000 。 二、输入描述 一个…

在虚拟机上部署hadoop集群(全流程)

一、单节点部署前置准备 这里一直下一步就好了 接下来需要为该节点固定ip并配置相关网关还有dns解析 这里配置了一个本机dns解析,也配置了一个公网dns解析(主要目的还是为了固定ip

微服务架构打造的供应链系统、采购配送系统,支持SaaS模式

一、开源项目简介 haohan-scm 介绍 基于pig微服务架构打造 供应链系统,采购配送系统。为客户提供仓储管理、订单管理、打单、货源采购、分拣、配送等系统功能。 二、开源协议 使用AGPL-3.0开源协议 三、界面展示 系统截图 四、功能概述 基于pig微服务架构打…

CASA模型:生态系统NPP及碳源、碳汇模拟、土地利用变化、未来气候变化、空间动态模拟

查看原文>>>生态系统NPP及碳源、碳汇模拟、土地利用变化、未来气候变化、空间动态模拟实践技术应用 目录 第一章 CASA模型介绍(讲解案例实践) 第二章 CASA初步操作 第三章 CASA数据制备(一) 第四章 CASA数据制备&am…

FinOps云成本管理的新方法

云计算为企业带来了巨大的灵活性和创新机会,但也带来了成本控制的挑战。云服务使企业更容易大规模部署应用程序和服务,但如果不仔细管理,费用可以快速增加。据国际知名厂商Flexera云报告显示,企业云支出浪费平均 30%。 FinOps 是一种新的工作方法,专注于云成本管理…

Three.js教程:对象克隆、复制

推荐:将 NSDT场景编辑器 加入你的3D工具链 其他系列工具: NSDT简石数字孪生 对象克隆.clone()和复制.copy() Threejs大多数对象都有克隆.clone()和复制.copy()两个方法,点模型Points、线模型Line、网格网格模型Mesh一样具有这两个方法。 复制方法.copy…

React Native的fragment和JetPack ViewPager2的集成

文章目录 背景原生ViewPage2的代码结构React Native端的实现原生端的实现在Adapter中注册FragmentMainActivity实现DefaultHardwareBackBtnHandler接口 小结 背景 ViewPager2是ViewPager的升级版,在原生Android应用中使用广泛。近期本人项目需要添加一些React Nati…