当前位置:网站首页>NPM's ID card and dependence
NPM's ID card and dependence
2022-07-27 18:59:00 【venture to ask】
npm ID card and dependence of
from npm Downloaded node_modules The contents of the folder are called “ rely on ”;
Use package.json To manage these dependencies , You need to create your own ID card
The first thing to do when developing a project is to create an ID card
npm init

Fill in the information enter Create package.json The documents are as follows

At this time, some form information will be filled in, including your name 、 Version number 、 describe 、 Entrance file 、 The test command 、git Warehouse 、 key word 、 author 、 Copyright agreement
You can answer as needed , You can also enter directly without entering anything
This completes the creation of
With this ID card , When installing dependencies in the future, add —save
For example, press to install nzh modular

solarlunar modular
![]()
At this time package.json change

node_modules It's all interdependent , So if there are many modules introduced , At this time, if the physical file transfer is carried out, it will cause great , Particularly fragmented file content , Can not pass this node_modules Folder , Only pass the ID card ; So be sure to keep it with your ID card , Before the next use , reinstall
In the future, you just need to be in the corresponding package.json Enter... In the directory
npm isntallhere NodeJS and npm It will retrieve the package.json Inside the document dependencies And then install
边栏推荐
- How to send external mail to the company mailbox server on the Intranet
- Electric heating neck pillow chip-dltap703sc
- WinForm remove the close button in the upper right corner
- 汇编语言入门基础(1)
- RuntimeError: output with shape [1, 256, 256] doesn‘t match the broadcast shape [3, 256, 256]【报错】
- ES6-新增方法
- The understanding of string in C.
- ValueError: Found input variables with inconsistent numbers of samples: [80019456, 26673152]【报错】
- js中的函数与DOM获取元素和事件属性的使用
- C file and folder input / output stream code
猜你喜欢

Matplotlib(基本用法)

Leetcode brushes questions the next day

Kinect for Unity3D——BackgroundRemovalDemo学习

Unity显示Kinect捕获的镜头

百度地图技术概述,及基本API与WebApi的应用开发

Jianmu continuous integration platform v2.5.2 release

MySQL 04 高级查询(二)

Kinect2 for Unity3D——AvatarDemo学习

连接查询和子查询

Multifunctional wireless remote control moxibustion instrument chip dltap703sd
随机推荐
Join query and subquery
MySQL 03 高级查询(一)
Redis注解
Functions in JS and the use of DOM to obtain elements and event attributes
Nacos display service registration address error
Arrays and objects in JS
MySQL 05 存储过程
ridis命令笔记
Unity-显示Kinect深度数据
Extension of ES6 value
飞机大战碰撞检测
[wechat applet] project practice - lottery application
Day 3 of leetcode question brushing
Sentinel1.8.4 persistent Nacos configuration
Aircraft collision detection
js实现简易表单验证与全选功能
Latex使用--subfigure竖排图形
USB rechargeable hand warmer chip dltap602sc Jericho
C#与Mysql数据库交互-Mysql配置及增删查改操作
MicaZ+Tinyos学习笔记(1)