Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Is npm node?

2025-02-27 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

Editor to share with you whether npm is node, I believe most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!

Npm is not node,npm is the package manager of nodejs, while nodejs is a running environment of javascript, which encapsulates the Google V8 engine, that is to say, nodejs contains npm, but npm does not refer to node.

This article operating environment: Windows7 system, nodejs10.16.2 version, Dell G3 computer.

Node.js is a running environment of javascript, which encapsulates the Google V8 engine. Is a server-side javascript interpreter.

Include relationship, nodejs contains npm, for example, if you install nodejs, you open cmd and type npm-v, you will find the version number of npm, indicating that npm has been installed.

To quote the great god's summary:

Npm is actually the package manager (package manager) of nodejs. When we develop on Node.js, we will use a lot of javascript code that others have already written.

If whenever we need someone else's code, search according to the name, download the source code, decompress it, and then use it, it will be very troublesome. So the package manager npm appears.

Everyone uploads their own written source code to the npm official website. If you want to use one or some of them, you can install them 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, then npm will, according to the dependency,

Download and manage all dependent packages. Imagine how troublesome it would be if we did all this work on our own.

The above is all the content of the article "is npm node or not?" Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report