Skip to main content Skip to docs navigation

Node.js is a cross-platform JavaScript runtime environment that allows developers to build server-side and network applications with JavaScript.

On this page

Node.js

Node Package Manager (npm)

npm is a package manager that is downloaded and bundled alongside Node.js. Its command-line (CLI) client npm can be used to download, configure and create packages for use in Node.js projects. Downloaded packages can be imported by ES imports and CommonJS require() without including the dependency directory node_modules/ they are downloaded to, as Node.js resolves packages without a relative or absolute path specified in their import.

Packages hosted on npm are downloaded from the registry at https://registry.npmjs.org/ , but the CLI can be configured to use any compatible instance.

See also

Updated on April 20, 2024 by Datarist.