当前位置:网站首页>npm npm
npm npm
2022-08-01 23:00:00 【爷傲奈我何1】
why
JavaScript项目包管理工具
cnpm tarn 同类型产品
初始项目
npm init
初始化项目,创建package.json的文件
npm init -y
快捷初始化项目 (选项都为yes)
目录解释
package.json
项目包管理文件
package-lock.json
下载缓存地址
node_modules
安装包下载的位置
安装 install 可以简写为 i --save-dev 简写为 -D --save 简写为 -S
全局安装
npm i jquery -g
本地安装
npm i jquery
一次性安装多个
npm i jquery vue
安装开发时依赖包
npm i axios --save-D
安装运行时依赖包
npm i jquery –S
安装该模块到指定版本
npm i jquery @版本号
卸载
卸载jquery
npm uninstall jquery
别名(简写) uninstall ->remove-> r
更新
更新jquery
npm update jquery
别名update -> up
边栏推荐
- 研发团队数字化转型实践
- 浅析多服务在分布式系统下多事务通信处理机制方案
- 从0到100:招生报名小程序开发笔记
- SQL Server (design database--stored procedure--trigger)
- excel edit a cell without double clicking
- Create virtual environments with virtualenv and Virtualenvwrapper virtual environment management tools
- 小程序毕设作品之微信美食菜谱小程序毕业设计成品(5)任务书
- 最短路模板
- PHP算法之最接近的三数之和
- 小程序容器+自定义插件,可实现混合App快速开发
猜你喜欢
xctf攻防世界 Web高手进阶区 webshell
ROS2初级知识(8):Launching启动多节点
毫秒级!千万人脸库快速比对,上亿商品图片检索,背后的极速检索用了什么神器?
联邦学习的框架搭建
2022 edition of MySQL tutorial, top collection good, take your time
Postman batch test interface detailed tutorial
Go 微服务开发框架DMicro的设计思路
Postman 批量测试接口详细教程
Use Jenkins for continuous integration, this knowledge point must be mastered
Mini Program Graduation Works WeChat Food Recipe Mini Program Graduation Design Finished Product (8) Graduation Design Thesis Template
随机推荐
JS prototype hasOwnProperty in Add method Prototype end point Inherit Override parent class method
excel vertical to horizontal
PAM Palindromic Automata
Prufer序列
如何理解 new (...args: any[]) => any
还在纠结报表工具的选型么?来看看这个
Graph Theory - Strongly Connected Component Condensation + Topological Sort
Postman batch test interface detailed tutorial
leetcode 204. Count Primes 计数质数 (Easy)
Background project Express-Mysql-Vue3-TS-Pinia page layout-sidebar menu
使用分类权重解决数据不平衡的问题
将vim与系统剪贴板的交互使用
xctf attack and defense world web master advanced area webshell
基于 OData 模型和 JSON 模型的 SAP UI5 表格控件行项目的添加和删除实现
leetcode刷题
隔离和降级
一种灵活的智能合约协作方式
vscode hide menu bar
罗克韦尔AB PLC RSLogix5000中的比较指令使用方法介绍
解决yolov5训练时出现:“AssertionError: train: No labels in VOCData/dataSet_path/train.cache. Can not train ”