当前位置:网站首页>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
边栏推荐
- 数字政府建设中政务中台中的技术创新点
- LLVM之父Chris Lattner:编译器的黄金时代
- [indexof] [lastIndexOf] [split] [substring] usage details
- Four pictures to understand some basic usage of Matplotlib
- [Luke V0] verification environment 2 - Verification Environment components
- npm报错 :operation not permitted, mkdir ‘C: \Program Files \node js \node_ cache _ cacache’
- Illegal character in scheme name at index 0:
- web页面如何渲染
- MySQL small exercise (only suitable for beginners, non beginners are not allowed to enter)
- 机器学习(六)——贝叶斯分类器
猜你喜欢
Chris LATTNER, father of llvm: the golden age of compilers
L2-024 tribe (25 points) (and check the collection)
1099 establish binary search tree (30 points)
108. 将有序数组转换为二叉搜索树
SAP 101K 411K 库存变化
小程序报错:Cannot read property 'currentTarget' of undefined
A must see wechat applet development guide 1 - basic knowledge
Non duplicate data values of two MySQL query tables
PLC的点表(寄存器地址和点表定义)破解探测方案--方便工业互联网数据采集
MySQL small exercise (only suitable for beginners, non beginners are not allowed to enter)
随机推荐
Valgrind and kcache grind use run analysis
Share the office and improve the settled experience
搞不懂时间、时间戳、时区,快来看这篇
108. 将有序数组转换为二叉搜索树
Single chip microcomputer nixie tube stopwatch
Rembg split mask
2D 01 Backpack
MySQL小练习(仅适合初学者,非初学者勿进)
Is Zhongyan futures safe and reliable?
RSA 加密解密签名验签
PCTP考试经验分享
Pctp test experience sharing
Flink SQL realizes the integration of stream and batch
论文阅读《Multi-View Depth Estimation by Fusing Single-View Depth Probability with Multi-View Geometry》
Arbre de dépendance de l'emballage des ressources
First principle mind map
基于点云凸包的凹包获取方法
LLVM之父Chris Lattner:编译器的黄金时代
Strength comparison vulnerability of PHP based on hash algorithm
Illegal character in scheme name at index 0: