当前位置:网站首页>Introduction to NPM install command
Introduction to NPM install command
2022-06-22 10:28:00 【Ah Fei】
npm install Introduction to the order
npm install command
npm install (with no args, in package dir)
npm install [<@scope>/]<name>
npm install [<@scope>/]<name>@<tag>
npm install [<@scope>/]<name>@<version>
npm install [<@scope>/]<name>@<version range>
npm install <git-host>:<git-user>/<repo-name>
npm install <git repo url>
npm install <tarball file>
npm install <tarball url>
npm install <folder>
alias: npm i
common options: [-P|--save-prod|-D|--save-dev|-O|--save-optional]
[-E|--save-exact] [-B|--save-bundle] [--no-save] [--dry-run]
npm install xxx
- Will be able to X Package installed in node_modules Directory
- Not modify package.json
- And then run npm install On command , Will not automatically install X
-g
Global installation
-S, --save
- Will be able to X Package installed in node_modules Directory
- Will be in package.json Of dependencies Add... Under properties X
- And then run npm install On command , It will be installed automatically X To node_modules Directory
-P, --save-prod: Package will appear in yourdependencies
The package will appear in the dependencies . This is the default , Unless it appears -D or -O
The installation package information will be added to devDependencies( Development phase dependencies ), So it's commonly used in the development phase
-D, --save-dev: Package will appear in your devDependencies
The package will appear in your devDependencies in
-O, --save-optional: Package will appear in your optionalDependencies.
The package will appear in optionalDependencies in
–no-save: Prevents saving to dependencies
Prevent saving to dependencies
-E, –save-exact Precisely install the specified module version
Installation package , The latest version will be installed by default
npm install jquery --save-exact or
npm install jquery -E
Reference link :https://www.npmjs.cn/cli/install/
边栏推荐
猜你喜欢

YOLOv3目标检测

神经网络训练trick总结

普乐蛙VR台风逃生体验VR灾害自救模拟系统VR科普知识设备

批量创建/删除文件、文件夹、修改文件名 后缀名

2022-06-09 工作记录--yarn/npm-Error-EPERM: operation not permitted, uv_cwd

2022各大厂最新总结的软件测试宝典,看完不怕拿不到offer

Analysis of thinkphp5.0.24 deserialization vulnerability

Signal integrity (SI) power integrity (PI) learning notes (XXIV) differential pair and differential impedance (IV)

西电AI专业排名超清北,南大蝉联全国第一 | 2022软科中国大学专业排名

Backbone! Youxuan software was selected as one of the top 100 digital security companies in China in 2022
随机推荐
【JMeter】JMeter如何模拟不同的网络速度
【jmeter】shell脚本自动执行jmeter
Investment transaction management
每日一题day5-1636. 按照频率将数组升序排序
使用的软件是php mysql 数据库
Open a safe distance: the international space station has taken measures to actively avoid space debris
C language to write a two-way linked list
On the routing tree of gin
logstash中Ruby代码把@timestamp时间戳格式转换
HMS Core新闻行业解决方案:让技术加上人文的温度
2022-06-09 工作记录--yarn/npm-Error-EPERM: operation not permitted, uv_cwd
jg_使用easyexcel读取excel_20220619
【科普】一文弄懂监督式学习、非监督式学习以及强化式学习
JG_fx_20220620
Basic principles of the Internet
nodejs 中 path.join() 和 path.resolve()的区别
How to manage electronic documents efficiently and concisely
无线802.1x认证简介及配置方法
数据智能基础设施升级窗口将至?看九章云极 DingoDB 如何击破数据痛点
Read the history of it development in one breath