当前位置:网站首页>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
边栏推荐
- Idea 2020.1 Community Edition download experience
- 商品名称模糊搜索:
- Unity-显示Kinect深度数据
- EN 1155 building hardware swing door opener - CE certification
- LeetCode 刷题 第二天
- C file and folder input / output stream code
- JS中的数组与对象
- Filebeat.yml configuration file about the configuration of multiple services
- Code interview of Amazon
- 瑞吉外卖笔记
猜你喜欢

`this.$ Emit ` the child component passes multiple parameters to the parent component

Kinect for Unity3d----KinectManager

微信支付及支付回调

Household mute mosquito repellent lamp chip-dltap703sd-jericho

MySQL 01 关系型数据库设计

Order submission

Intelligent insomnia therapeutic instrument product dlt8p68sa Jericho

USB rechargeable hand warmer chip dltap602sc Jericho

Uploading and downloading of files

Typescript installation
随机推荐
Bathroom with demister vanity mirror touch chip-dlt8t10s
Functions in JS and the use of DOM to obtain elements and event attributes
飞机大战敌机出场
Ruiji takeout SQL table
Leetcode brushes questions the next day
js中的函数与DOM获取元素和事件属性的使用
Aircraft collision detection
Infrared hyperspectral survey
Docker - docker installation, MySQL installation on docker, and project deployment on docker
Typescript installation
Product name fuzzy search:
Interviewer: what do you think is your biggest weakness?
Redis注解
Arrays and objects in JS
MySQL 01 关系型数据库设计
Order timeout cancellation and commodity query by category
Latex使用-控制表格或者图形的显示位置
The hero of the aircraft war comes out with bullets
npm、cnpm 淘宝镜像
JDBC-MySql 01 JDBC操作MySql(增删改查)