当前位置:网站首页>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 - linear table

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 code

关于组织2021-2022全国青少年电子信息智能创新大赛西南赛区(四川)复赛的通知

神奇快速幂

Go learning notes (2) basic types and statements (1)

Apng2gif solutions to various problems

c—线性表

一键免费翻译300多页的pdf文档

An example analysis of MP4 file format parsing
随机推荐
507 field D - extraterrestrial relics
[path planning] use the vertical distance limit method and Bessel to optimize the path of a star
Install sqlserver2019
80% of the people answered incorrectly. Does the leaf on the apple logo face left or right?
Basic learning of SQL Server -- creating databases and tables with code
ROS from entry to mastery (IX) initial experience of visual simulation: turtlebot3
archery安装测试
Is it safe to buy funds online?
Is it safe for tongdaxin to buy funds?
Basic learning of SQL Server -- creating databases and tables with the mouse
【编程题】【Scratch二级】2019.09 制作蝙蝠冲关游戏
FFA与ICGA造影
机器人(自动化)等专业课程创新的结果
Kubectl 好用的命令行工具:oh-my-zsh 技巧和窍门
2022.7.7-----leetcode.648
Use filters to count URL request time
每日刷题记录 (十六)
Robomaster visual tutorial (11) summary
一键免费翻译300多页的pdf文档
Benchmarking Detection Transfer Learning with Vision Transformers(2021-11)