Is npm node?

藏色散人
Release: 2021-12-10 14:16:48
Original
2381 people have browsed it

npm is not node, npm is the package manager of nodejs, and nodejs is referred to as node, which is a running environment for javascript and an encapsulation of the Google V8 engine. That is to say, nodejs contains npm, but npm It does not refer to node.

Is npm node?

The operating environment of this article: Windows 7 system, nodejs version 10.16.2, Dell G3 computer.

Is npm node?

node.js is a running environment for javascript and an encapsulation of the Google V8 engine. It is a server-side JavaScript interpreter.

Inclusion relationship, nodejs contains npm. For example, if you install nodejs, you will find the version number of npm when you open cmd and enter npm -v, indicating that npm has been installed.

Quote from the master’s summary:

In fact, npm is the package manager of nodejs. When we develop on Node.js, we will use a lot of javascript codes that have been written by others.

Whenever we need other people's code, we search it based on the name, download the source code, unzip it, and then use it , will be very troublesome. So the package manager npm appeared.

Everyone uploads the source code they have written to the npm official website. If you want to use one or more of them, just install it directly through npm, regardless of where the source code is.

And if we want to use module A, and module A depends on module B, and module B depends on modules C and D, at this time npm will

according to the dependency relationship, all dependent packages Download them all and manage them. Just imagine how troublesome it would be if we had to do all this work ourselves!

Recommended learning: "node.js Video Tutorial"

The above is the detailed content of Is npm node?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!