当前位置:网站首页>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 .
边栏推荐
- 机器人(自动化)等专业课程创新的结果
- 手写一个模拟的ReentrantLock
- Solutions to problems in sqlserver deleting data in tables
- ROS from entry to mastery (IX) initial experience of visual simulation: turtlebot3
- limit 与offset的用法(转载)
- HDU - 1260 Tickets(线性DP)
- QT and OpenGL: load 3D models using the open asset import library (assimp)
- Pypharm uses, and the third-party library has errors due to version problems
- Download AWS toolkit pycharm
- HDU - 1260 tickets (linear DP)
猜你喜欢

HB 5469 combustion test method for non-metallic materials in civil aircraft cabin

About the difference between ch32 library function and STM32 library function

Chisel tutorial - 05 Sequential logic in chisel (including explicit multi clock, explicit synchronous reset and explicit asynchronous reset)

c—线性表

Data Lake (XV): spark and iceberg integrate write operations

One click free translation of more than 300 pages of PDF documents

Robomaster visual tutorial (1) camera

QT and OpenGL: loading 3D models using the open asset import library (assimp) - Part 2

Basic learning of SQL Server -- creating databases and tables with the mouse

【史上最详细】信贷中逾期天数统计说明
随机推荐
Robomaster visual tutorial (0) Introduction
10 schemes to ensure interface data security
Detailed explanation of interview questions: the history of blood and tears in implementing distributed locks with redis
神奇快速幂
C - Fibonacci sequence again
archery安装测试
解析token的网址
Pigsty: out of the box database distribution
@Configuration注解的详细介绍
QT and OpenGL: loading 3D models using the open asset import library (assimp) - Part 2
Go learning notes (1) environment installation and hello world
正畸注意事项(持续更新中)
数据湖(十五):Spark与Iceberg整合写操作
Introduction knowledge system of Web front-end engineers
蓝桥ROS中使用fishros一键安装
P2141 [noip2014 popularization group] abacus mental arithmetic test
受限线性表
【编程题】【Scratch二级】2019.03 垃圾分类
95.(cesium篇)cesium动态单体化-3D建筑物(楼栋)
Redis caching tool class, worth owning~