Home >Web Front-end >JS Tutorial >What is the relationship between nodejs, npm and nvm?

What is the relationship between nodejs, npm and nvm?

青灯夜游
青灯夜游forward
2020-09-11 10:11:322581browse

Mastering the relationship between nodejs, npm, and nvm will help you understand how the reactNative project is modularized. The following article will take you to understand the relationship between nvm, npm, and nodejs. It has certain reference value. Friends in need can refer to it. I hope it will be helpful to everyone.

What is the relationship between nodejs, npm and nvm?

Video tutorial recommendation: nodejs tutorial

Why you need to understand the relationship between nvm, npm and nodejs:

ReactNative project construction uses these tools for build management.

Understanding their relationship, you can understand how the reactNative project is modularized.

nvm: nodeJs version management tool, manages nodejs version and npm version
nodeJs: The code library required in the reactNative development process.
npm: It is a package management tool installed along with nodeJs. npm manages third-party plug-ins corresponding to nodeJs

Common usage scenarios include the following:

1. Allow Users download third-party packages written by others from the npm server for local use (such as Taobao server)

2. Allow users to upload packages written by themselves to the NPM server for others to use (such as the npm server built by themselves)

The relationship between nvm, nodejs, and npm:

(1)nvm manages the construction of nodejs and the corresponding npm, and npm manages the third-party plug-in corresponding to nodejs

(2)A The reactNative project only contains a nodejs and npm. npm and nodejs are in a matching relationship, a one-to-one relationship.

nvm builds the relationship diagram of reactNavite:

What is the relationship between nodejs, npm and nvm?

For more programming-related knowledge, please visit: Introduction to Programming! !

The above is the detailed content of What is the relationship between nodejs, npm and nvm?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:segmentfault.com. If there is any infringement, please contact admin@php.cn delete