当前位置:网站首页>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
边栏推荐
- 华为无线设备配置双链路冷备份(AP指定配置方式)
- 还在纠结报表工具的选型么?来看看这个
- 小程序毕设作品之微信体育馆预约小程序毕业设计成品(1)开发概要
- 如何使用pywinauto和pyautogui将动漫小姐姐链接请回家
- y84.第四章 Prometheus大厂监控体系及实战 -- prometheus告警机制进阶(十五)
- Codeforces CodeTON Round 2 (Div. 1 + Div. 2, Rated, Prizes!) A-D Solution
- Chapter 19 Tips and Traps: Common Goofs for Novices
- SQL Server(设计数据库--存储过程--触发器)
- 计算两点之间的中点
- xss相关知识点以及从 XSS Payload 学习浏览器解码
猜你喜欢
随机推荐
SQL Server(设计数据库--存储过程--触发器)
How to use pywinauto and pyautogui to link the anime lady and sister please go home
检查点是否在矩形内
visual studio code multiple editing
perspectiveTransform warpPerspective getPerspectiveTransform findHomography
Prufer sequence
深度学习Course2第二周Optimization Algorithms习题整理
excel cell contian two words, seperated by a slash
小程序毕设作品之微信美食菜谱小程序毕业设计成品(8)毕业设计论文模板
TCP 可靠吗?为什么?
Graph Theory - Strongly Connected Component Condensation + Topological Sort
Oracle 数据库设置为只读及读写
ping no reply
Ten years after graduation, financial freedom: those things that are more important than hard work, no one will ever teach you
将vim与系统剪贴板的交互使用
y84. Chapter 4 Prometheus Factory Monitoring System and Actual Combat -- Advanced Prometheus Alarm Mechanism (15)
联邦学习的框架搭建
E - Integer Sequence Fair
How to add a game character to a UE4 scene
软技能之UML图









