当前位置:网站首页>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 .
边栏推荐
- C language greedy snake
- limit 与offset的用法(转载)
- 蓝桥ROS中使用fishros一键安装
- Data analysis series 3 σ Rule / eliminate outliers according to laida criterion
- Pigsty: out of the box database distribution
- Basic learning of SQL Server -- creating databases and tables with code
- Problems faced when connecting to sqlserver after downloading (I)
- Resolve the URL of token
- QT and OpenGL: load 3D models using the open asset import library (assimp)
- archery安装测试
猜你喜欢
[leetcode] 20. Valid brackets
Uic564-2 Appendix 4 - flame retardant fire test: flame diffusion
QT creator add JSON based Wizard
Apng2gif solutions to various problems
Ping error: unknown name or service
Magic fast power
关于CH32库函数与STM32库函数的区别
HB 5469民用飞机机舱内部非金属材料燃烧试验方法
快速回复二极管整流特性
95.(cesium篇)cesium动态单体化-3D建筑物(楼栋)
随机推荐
The function is really powerful!
HDU - 1260 tickets (linear DP)
Postgres timestamp to human eye time string or millisecond value
C - minute number V3
C language learning
AITM3.0005 烟雾毒性测试
Solutions to problems in sqlserver deleting data in tables
一个测试工程师的7年感悟 ---- 致在一路独行的你(别放弃)
[path planning] use the vertical distance limit method and Bessel to optimize the path of a star
ROS从入门到精通(九) 可视化仿真初体验之TurtleBot3
35岁那年,我做了一个面临失业的决定
80% of the people answered incorrectly. Does the leaf on the apple logo face left or right?
Kubectl 好用的命令行工具:oh-my-zsh 技巧和窍门
Les mots ont été écrits, la fonction est vraiment puissante!
May day d-light
神奇快速幂
Automated testing: robot framework is a practical skill that 90% of people want to know
FFA与ICGA造影
LinkedBlockingQueue源码分析-新增和删除
C - Fibonacci sequence again