当前位置:网站首页>The difference between -s and -d when downloading packages using NPM
The difference between -s and -d when downloading packages using NPM
2022-07-07 23:59:00 【Xiao Zhang, run quickly.】
npm install name -save-dve Abbreviation (npm install name -D) Automatically add the module and version number to devdependencies.
npm install name -save Abbreviation (npm install name -S) Automatically add the module and version number to dependencies.
-D after , The installation package will package Medium devDependencies In the object . abbreviation dev.dev It is used in the development environment .
give an example :
Building tools :gulp and webpack It is used to compress code , Tools needed for packaging , When the program actually runs, it doesn't need , It's going to be put in dev So use -D
-S after , The installation package will package Medium dependencies In the object . abbreviation dep.dep It is used in the production environment .
give an example :
Project plug-in : for example element ui、echarts This plug-in To be used in operation , It's going to be put in dep So I use -S
Generally, our project plug-ins , stay api You can see , It's usually -S. Because these plug-ins are used during program operation .
边栏推荐
猜你喜欢
![[programming problem] [scratch Level 2] March 2019 draw a square spiral](/img/fa/ae9dabdd36ba77b1f4644dd23bee93.png)
[programming problem] [scratch Level 2] March 2019 draw a square spiral

用語雀寫文章了,功能真心强大!

Basic learning of SQL Server -- creating databases and tables with code

95. (cesium chapter) cesium dynamic monomer-3d building (building)

Go learning notes (1) environment installation and hello world

面试题详解:用Redis实现分布式锁的血泪史

ROS从入门到精通(九) 可视化仿真初体验之TurtleBot3

Chisel tutorial - 02 Chisel environment configuration and implementation and testing of the first chisel module

Install sqlserver2019

光流传感器初步测试:GL9306
随机推荐
Is it safe to buy funds online?
Restricted linear table
Problems faced when connecting to sqlserver after downloading (I)
解析token的网址
Codeworks 5 questions per day (average 1500) - day 8
Go time package common functions
Les mots ont été écrits, la fonction est vraiment puissante!
ROS from entry to mastery (IX) initial experience of visual simulation: turtlebot3
【编程题】【Scratch二级】2019.03 垃圾分类
Magic fast power
HDU - 1260 tickets (linear DP)
Chisel tutorial - 01 Introduction to Scala
一个测试工程师的7年感悟 ---- 致在一路独行的你(别放弃)
HB 5469民用飞机机舱内部非金属材料燃烧试验方法
Connect diodes in series to improve voltage withstand
Alibaba cloud MySQL cannot connect
QT creator add JSON based Wizard
Data analysis series 3 σ Rule / eliminate outliers according to laida criterion
【编程题】【Scratch二级】2019.09 绘制雪花图案
用语雀写文章了,功能真心强大!