What is the relationship between javascript, Node.js and npm

青灯夜游
Release: 2021-01-04 17:40:08
forward
2265 people have browsed it

What is the relationship between javascript, Node.js and npm

Related recommendations: "node js tutorial"

1. What is Node.js?

Node .js is a platform built on the Chrome JavaScript runtime, which is used to easily build web applications with fast response speed and easy expansion. Node.js uses an 'event-driven' and 'non-blocking' model to be lightweight and efficient, making it ideal for running data-intensive real-time applications on distributed devices. To put it simply: node.js is a running environment for javascript and a server-side javascript interpreter.

2. What is npm?

npm is a package management tool included in node.js, just like the yum warehouse and rpm package management in Linux; just like the pip package management tool in Python.
npm consists of three independent parts:

npm official website (warehouse source)

Registry (registry) (package.json)

Command line tool (CLI)

The website is the main way for developers to find packages, set parameters, and manage the npm experience.

The registry is a huge database that stores information about each package.

CLI is run from the command line or terminal. Developers interact with npm via the CLI.

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

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

Related labels:
source:csdn.net
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
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!