当前位置:网站首页>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 .
边栏推荐
- MP4文件格式解析之结合实例分析
- Benchmarking Detection Transfer Learning with Vision Transformers(2021-11)
- Anaconda+pycharm+pyqt5 configuration problem: pyuic5 cannot be found exe
- Go learning notes (2) basic types and statements (1)
- aws-aws help报错
- HB 5469 combustion test method for non-metallic materials in civil aircraft cabin
- Enumeration, simulation, and sorting
- Visual Studio Deployment Project - Create shortcut to deployed executable
- 【編程題】【Scratch二級】2019.12 飛翔的小鳥
- Postgres timestamp to human eye time string or millisecond value
猜你喜欢
自动化测试:Robot FrameWork框架90%的人都想知道的实用技巧
Anaconda+pycharm+pyqt5 configuration problem: pyuic5 cannot be found exe
Basic learning of SQL Server -- creating databases and tables with the mouse
[leetcode] 20. Valid brackets
Fully automated processing of monthly card shortage data and output of card shortage personnel information
Kubectl 好用的命令行工具:oh-my-zsh 技巧和窍门
An example analysis of MP4 file format parsing
UIC564-2 附录4 –阻燃防火测试:火焰的扩散
机器人(自动化)等专业课程创新的结果
DataGuard active / standby cleanup archive settings
随机推荐
Download AWS toolkit pycharm
codeforces每日5题(均1500)-第八天
Robomaster visual tutorial (10) target prediction
【leetcode】day1
PostGIS learning
Alibaba cloud MySQL cannot connect
Rock-paper-scissors
[programming problem] [scratch Level 2] December 2019 flying birds
Fully automated processing of monthly card shortage data and output of card shortage personnel information
Install sqlserver2019
c—线性表
Apng2gif solutions to various problems
35岁那年,我做了一个面临失业的决定
BSS 7230 航空内饰材料阻燃性能测试
机器人(自动化)等专业课程创新的结果
Orthodontic precautions (continuously updated)
每日刷题记录 (十六)
受限线性表
P1067 [noip2009 popularity group] polynomial output (difficult, pit)
Pigsty:开箱即用的数据库发行版