当前位置:网站首页>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
边栏推荐
- excel edit a cell without double clicking
- 如何使用pywinauto和pyautogui将动漫小姐姐链接请回家
- 杭电多校3 1012. Two Permutations dp*
- IDEA常用插件
- SQL Server (design database--stored procedure--trigger)
- 03. GO language variable definition, function
- 用virtualenv和Virtualenvwrapper虚拟环境管理工具创建虚拟环境
- 小程序毕设作品之微信美食菜谱小程序毕业设计成品(6)开题答辩PPT
- From 0 to 100: Notes on the Development of Enrollment Registration Mini Programs
- Error creating bean with name ‘dataSource‘:Unsatisfied dependency expressed through field ‘basicPro
猜你喜欢
随机推荐
y84. Chapter 4 Prometheus Factory Monitoring System and Actual Combat -- Advanced Prometheus Alarm Mechanism (15)
excel split text into different rows
联邦学习在金融领域的发展和应用
基于JAX的激活函数、softmax函数和交叉熵函数
SQL Server (design database--stored procedure--trigger)
萍不回答
Postman batch test interface detailed tutorial
PHP算法之有效的括号
y84.第四章 Prometheus大厂监控体系及实战 -- prometheus告警机制进阶(十五)
计算两点之间的中点
prim生成树
PostgreSQL 基础--常用命令
[Recommended books] The first self-driving technology book
excel edit a cell without double clicking
excel change cell size
PHP算法之电话号码的字母组合
PAM Palindromic Automata
【C补充】链表专题 - 单向链表
【数据分析03】
ping no reply









