Home > Article > Web Front-end > What is the relationship between javascript, Node.js and npm
Related recommendations: "node js tutorial"
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.
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!