当前位置:网站首页>Common commands of NPM
Common commands of NPM
2022-07-28 22:29:00 【Crane sorrow_】
One 、 What is? npm
node js Self contained package ( plug-in unit ) Manager
Two 、npm initialization
- npm init Initialize project , establish package.json Project profile
- npm init -y Initialize project All selected yes
- npm-v View version
3、 ... and 、 Install source
npm config set registry url
Change the download source to Taobao :
npm config set registry http://registry.npm.taobao.org
View installation source :
npm config get registry
Four 、 Folder explanation
package.json Project matching file
- dependencies Project needs dependencies ( The dependence required by the product environment )
- scripts What are the commands of the project
- devDependencies Dependencies needed during development
package-lock.json Cache address
node_modules ( rely on ) Download address of the package
5、 ... and 、 install
npm install <pkg>
Abbreviation :npm i jquery
Install the specified version : npm i [email protected]
Install all package.json Defined dependencies : npm i
Global installation :
- npm i <pkg> -g
- npm i js-cookie -g
View the global installation directory : npm root view -g
Development depends on :
- npm i <pkg> -D
- npm i <kpg>
- npm i less -D
Products depend on :
- npm i <pkg> -S
- npm i <pkg> --save
- npm i jquery -S
6、 ... and 、 uninstall
- npm uninstall <pkg>
- Abbreviation npm r jquery
7、 ... and 、 edition
2.1.4 X.Y.Z
- 2X The big version The big version , Is an incompatible update
- 1Y Medium version Medium version , New content added , The original project is compatible
- 4Z Small version Small version , Solved several Bug
8、 ... and 、 Help order
- npm install -h
- npm uninstall -h
边栏推荐
- 【二叉树】二叉树中的伪回文路径
- HCIP(9)
- hcip实验(14)
- Idea generate class diagram plug-in UML (super detailed)
- If you want to grow rapidly, you must first experience a major blow!
- SQL injection less34 (post wide byte injection + Boolean blind injection)
- SSH password free login
- How to install WiFi correctly
- 2021 mathematical modeling group B code
- IFLYTEK written examination
猜你喜欢

SQL注入 Less42(POST型堆叠注入)

mysql create语句能不能用来建立表结构并追加新的记录

Bugku, Web: all filtered
![[CS231N]Lecture_ 2:Image Classification pipelin](/img/4f/de56b071560ada746c587a9dbc5f02.jpg)
[CS231N]Lecture_ 2:Image Classification pipelin

Less than a year after its establishment! MIT derivative quantum computing company completed financing of US $9million

Desai wisdom number - line chart (stacking area chart): ranking of deposits of different occupational groups in the proportion of monthly income in 2022

hcip实验(15)

HCIP(8)

hcip实验(12)

Record the fluent to solve the problem of a renderflex overflowed by 7.3 pixels on the bottom
随机推荐
SQL注入 Less42(POST型堆叠注入)
tutorial/detailed_ workflow. Ipynb quantitative finance qlib Library
mysql8.0无法给用户授权或提示You are not allowed to create a user with GRANT的问题
TensorFlow Serving 高性能的机器学习模型服务系统
Sword finger offer II 067. maximum XOR (medium prefix tree bit operation array)
Sword finger offer II 063. replacement word (medium prefix tree string)
[CS231N]Lecture_ 2:Image Classification pipelin
Day3 classification management of Ruiji takeout project
HCIP(9)
HCIP(11)
76. Minimum coverage substring (hard sliding window hash table string)
Summary of the use of hash table set and map when leetcode brushes questions
Win11怎么打开软件通知
静态路由和缺省路由实验
Jmeter 安装第三方插件 Plugins Manager
Idea generate class diagram plug-in UML (super detailed)
JS convert numbers to letters
Ruiji takeout - background login function development
[Ruiji takeout] day05 package management business development
Solve the problem that TS node xxx.ts executes TS code and reports errors