当前位置:网站首页>NPM installation yarn
NPM installation yarn
2022-04-23 09:05:00 【Scattered quicksand】
npm and yarn The difference between :
1、 Speed difference
npm Execute each task according to the queue package, That is to say, we have to wait until now package After installation , In order to continue with the later installation ;
Yarn Synchronize all tasks , Improved performance .
2、 Installation version difference
Yarn By default, a lock file like this is generated
npm To pass the shrinkwrap Command to generate npm-shrinkwrap.json file , Only when this file exists ,packages The version and information will be recorded .npm5.0 After that, similar yarn.lock Of package-lock.json.
3、 Content output is different
npm The output information of is rather lengthy . In execution npm install When , The command line will continuously print out all installed dependencies .
Yarn Too much simplicity : By default , Combined with the emoji Print out the necessary information intuitively and directly , It also provides commands for developers to query additional installation information .
install yarn technological process
1、 install node.js( skip );
2、 Execute the installation instructions :
npm install -g yarn --registry=https://registry.npm.taobao.org
3、 To configure yarn Source , Change to the source of Taobao :
yarn config set registry https://registry.npm.taobao.org -g
yarn config set sass_binary_site http://cdn.npm.taobao.org/dist/node-sass -g
Be careful : When performing step 3 , If you are prompted ‘yarn’ When not an internal or external command , Check to see if yarn The installation package path is added to the system Path In the path .
版权声明
本文为[Scattered quicksand]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204230720296346.html
边栏推荐
- Flink reads MySQL and PgSQL at the same time, and the program will get stuck without logs
- Automatic differentiation and higher order derivative in deep learning framework
- Judgment on heap (25 points) two insertion methods
- BK3633 规格书
- LeetCode396. Rotate array
- [C language] document operation
- L2-023 graph coloring problem (25 points) (graph traversal)
- MySQL small exercise (only suitable for beginners, non beginners are not allowed to enter)
- Download and install bashdb
- Go language self-study series | golang nested structure
猜你喜欢

小程序报错 :should have url attribute when using navigateTo, redirectTo or switchTab

L2-024 tribe (25 points) (and check the collection)

资源打包关系依赖树

The crawler returns null when parsing with XPath. The reason why the crawler cannot get the corresponding element and the solution

Latex paper typesetting operation

MySQL小练习(仅适合初学者,非初学者勿进)

DJ music management software pioneer DJ rekordbox

How to protect open source projects from supply chain attacks - Security Design (1)

Flink SQL realizes the integration of stream and batch

Multi view depth estimation by fusing single view depth probability with multi view geometry
随机推荐
L2-022 重排链表 (25 分)(map+结构体模拟)
[Luke V0] verification environment 2 - Verification Environment components
错误: 找不到或无法加载主类
Colorui solves the problem of blocking content in bottom navigation
L2-024 tribe (25 points) (and check the collection)
web页面如何渲染
OneFlow學習筆記:從Functor到OpExprInterpreter
tsdf +mvs
Production practice elk
Is Zhongyan futures safe and reliable?
Whether the same binary search tree (25 points)
Technological innovation in government affairs in the construction of Digital Government
108. 将有序数组转换为二叉搜索树
LLVM之父Chris Lattner:编译器的黄金时代
Go language self-study series | golang structure as function parameter
OpenCV中的图像处理 —— 轮廓入门+轮廓特征
Wechat applet catchtap = "todetail" event problem
【原创】使用System.Text.Json对Json字符串进行格式化
L2-023 graph coloring problem (25 points) (graph traversal)
Initial experience of talent plan learning camp: communication + adhering to the only way to learn open source collaborative courses