当前位置:网站首页>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 .
边栏推荐
- Fully automated processing of monthly card shortage data and output of card shortage personnel information
- HDU - 1260 Tickets(线性DP)
- [programming problem] [scratch Level 2] December 2019 flying birds
- Kubectl 好用的命令行工具:oh-my-zsh 技巧和窍门
- Using Google test in QT
- The result of innovation in professional courses such as robotics (Automation)
- go time包常用函数
- 【编程题】【Scratch二级】2019.03 垃圾分类
- Traduction gratuite en un clic de plus de 300 pages de documents PDF
- SQL uses the in keyword to query multiple fields
猜你喜欢

QT creator add JSON based Wizard

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

FFA与ICGA造影

Restricted linear table

Set up personal network disk with nextcloud

蓝桥ROS中使用fishros一键安装

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

Wechat applet development beginner 1

Go learning notes (1) environment installation and hello world

At the age of 35, I made a decision to face unemployment
随机推荐
The result of innovation in professional courses such as robotics (Automation)
Chisel tutorial - 01 Introduction to Scala
Enterprise application demand-oriented development of human resources department, employee attendance records and paid wages business process cases
BSS 7230 航空内饰材料阻燃性能测试
Detailed explanation of interview questions: the history of blood and tears in implementing distributed locks with redis
Traduction gratuite en un clic de plus de 300 pages de documents PDF
[the most detailed in history] statistical description of overdue days in credit
PostGIS learning
MP4文件格式解析之结合实例分析
Go learning notes (1) environment installation and hello world
手写一个模拟的ReentrantLock
BSS 7230 flame retardant performance test of aviation interior materials
Using Google test in QT
Apng2gif solutions to various problems
mysql8.0 ubuntu20.4
Cmake learning notes (1) compile single source programs with cmake
Where are you going
Install sqlserver2019
Magic fast power
@Detailed introduction of configuration annotation