当前位置:网站首页>npm npm
npm npm
2022-08-01 23:07:00 【God is proud of me 1】
why
JavaScript project package management tool
cnpm tarn similar products
Initial Project
npm init
Initialize the project and create a package.json file
npm init -y
Quickly initialize the project (all options are yes)
Directory Explanation
package.json
Project package management file
package-lock.json
Download cache address
node_modules
Installation package download location
Installation can be abbreviated as i --save-dev abbreviated as -D --save abbreviated as -S
Global installation
npm i jquery -g
Local installation
npm i jquery
One-time installation of multiple
npm i jquery vue
Install development dependencies
npm i axios --save-D
Install runtime dependencies
npm i jquery –S
Install the module to the specified version
npm i jquery @version number
Uninstall
Uninstall jquery
npm uninstall jquery
Alias (shorthand) uninstall ->remove->r
Update
update jquery
npm update jquery
alias update -> up
边栏推荐
- System availability: 3 9s, 4 9s in SRE's mouth... What is it?
- 杭电多校3 1012. Two Permutations dp*
- Jmeter是什么
- ROS2初级知识(8):Launching启动多节点
- img 响应式图片的实现(含srcset属性、sizes属性的使用方法,设备像素比详解)
- Deep Learning Course2 Week 2 Optimization Algorithms Exercises
- 小程序毕设作品之微信美食菜谱小程序毕业设计成品(8)毕业设计论文模板
- 欧拉路径与欧拉回路
- 三、mysql 存储引擎-建库建表操作
- B. Difference Array--Codeforces Round #808 (Div. 1)
猜你喜欢

(Translation) How the contrasting color of the button guides the user's actions

Codeforces CodeTON Round 2 (Div. 1 + Div. 2, Rated, Prizes!) A-D 题解

Postman batch test interface detailed tutorial

研发团队数字化转型实践

从0到100:招生报名小程序开发笔记

关于ETL的两种架构(ETL架构和ELT架构)

Postman 批量测试接口详细教程

数据增强--学习笔记(图像类,cnn)

APP special test: traffic test

访问控制台中的选定节点
随机推荐
Quarantine and downgrade
复现gallerycms字符长度限制短域名绕过
访问控制台中的选定节点
13、学习MySQL 分组
y84. Chapter 4 Prometheus Factory Monitoring System and Actual Combat -- Advanced Prometheus Alarm Mechanism (15)
Prufer序列
论文理解【RL - Exp Replay】—— Experience Replay with Likelihood-free Importance Weights
解决端口占用
SRv6 L3VPN的工作原理
y84.第四章 Prometheus大厂监控体系及实战 -- prometheus告警机制进阶(十五)
SQL Server(设计数据库--存储过程--触发器)
CF1703G Good Key, Bad Key
深度学习Course2第二周Optimization Algorithms习题整理
Chapter 12 End-User Task As Shell Scripts
bat 之 特殊字符&转义
牛客多校4 A.Task Computing 思维
小程序毕设作品之微信体育馆预约小程序毕业设计成品(2)小程序功能
深度学习Course2第一周Practical aspects of Deep Learning习题整理
小程序毕设作品之微信美食菜谱小程序毕业设计成品(8)毕业设计论文模板
浅析多服务在分布式系统下多事务通信处理机制方案