当前位置:网站首页>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 .
边栏推荐
- @Detailed introduction of configuration annotation
- Data Lake (XV): spark and iceberg integrate write operations
- Wechat applet development beginner 1
- Enterprise application demand-oriented development of human resources department, employee attendance records and paid wages business process cases
- Reverse output three digit and arithmetic sequence
- [leetcode] 20. Valid brackets
- P1055 [noip2008 popularization group] ISBN number
- mysql8.0 ubuntu20.4
- Chisel tutorial - 03 Combinatorial logic in chisel (chisel3 cheat sheet is attached at the end)
- Pypharm uses, and the third-party library has errors due to version problems
猜你喜欢
用语雀写文章了,功能真心强大!
光流传感器初步测试:GL9306
Opengl3.3 mouse picking up objects
QT and OpenGL: load 3D models using the open asset import library (assimp)
第四期SFO销毁,Starfish OS如何对SFO价值赋能?
MP4文件格式解析之结合实例分析
Seven years' experience of a test engineer -- to you who walk alone all the way (don't give up)
Basic learning of SQL Server -- creating databases and tables with the mouse
[question de programmation] [scratch niveau 2] oiseaux volants en décembre 2019
一键免费翻译300多页的pdf文档
随机推荐
HDU - 1260 tickets (linear DP)
Magic fast power
BSS 7230 flame retardant performance test of aviation interior materials
如何衡量产品是否“刚需、高频、痛点”
Using Google test in QT
[the most detailed in history] statistical description of overdue days in credit
SQL connection problem after downloading (2)
每日刷题记录 (十六)
Redis caching tool class, worth owning~
Chisel tutorial - 05 Sequential logic in chisel (including explicit multi clock, explicit synchronous reset and explicit asynchronous reset)
Robomaster visual tutorial (11) summary
Benchmarking Detection Transfer Learning with Vision Transformers(2021-11)
FFA and ICGA angiography
ROS from entry to mastery (IX) initial experience of visual simulation: turtlebot3
PostGIS learning
Jisuan Ke - t3104
数据库查询——第几高的数据?
受限线性表
How did a fake offer steal $540million from "axie infinity"?
【編程題】【Scratch二級】2019.12 飛翔的小鳥