节点之间的区别是什么?在安装node.JS时,js运行时和npm包管理器选项。

时间:2022-05-29 06:30:57

i am trying to install node.js by downloading the .exe file, i am confused and stuck on the Node.js setup where in it asks to install node.js runtime or npm package manager so i want to proceed through the installation after knowing fully the difference between the two.

我正在尝试安装node。通过下载.exe文件,我感到困惑并被困在节点上。js安装程序要求安装节点。js运行时或npm包管理器,所以我想在完全了解两者之间的差异之后继续安装。

My question is what is the difference between node.js runtime and npm pacakage manager and what are all the features do i get on the two option.

我的问题是节点之间的区别是什么。js运行时和npm pacakage管理器以及我在这两个选项中获得的所有特性。

My basic purpose of installing node.js is to compile Typescript, please help me to understand the features of the two pacakage 节点之间的区别是什么?在安装node.JS时,js运行时和npm包管理器选项。

我安装node的基本目的。js正在编写打字稿,请帮助我理解这两个pacakage的特点

3 个解决方案

#1


17  

First of all, it does not ask you to install Node.js runtime OR npm package manager, it offers you to install them both (if you want)

首先,它不要求您安装Node。js运行时或npm包管理器,可以同时安装它们(如果需要)

Now, Node.js runtime is basically what will understand your javascript code and execute it to produce a result.

现在,节点。js运行时基本上就是理解javascript代码并执行它以产生结果的东西。

Npm package manager is a tool which will allow you to install third party libraries (other people's code) by using the command line.

Npm包管理器是一个工具,它允许您使用命令行安装第三方库(其他人的代码)。

npm install express

will install the framework called express for example.

将安装称为express的框架。

#2


2  

  • Node and Nodejs are the same. Interchangeable names for the same thing. Unless someone is talking about graph theory, trees or data structures.
  • Node和Nodejs是相同的。同一事物的可互换名称。除非有人在讨论图论、树或数据结构。
  • Nvm is a Nodejs version manager. It let's you easily install and switch between versions. It retains globally installed packages for each version.
  • Nvm是一个Nodejs版本管理器。它让您轻松地安装和切换版本。它保留了每个版本的全局安装包。
  • Npm is a package manager. It let's you install software (libraries, plugins, frameworks and applications). Typically this software is installed to build Node applications. Sometimes it isn't.
  • Npm是一个包经理。它允许您安装软件(库、插件、框架和应用程序)。通常,安装此软件是为了构建节点应用程序。有时它不是。

Put more simply. Npm depends on Node. Nvm installs Node.

将更简单。Npm取决于节点。Nvm安装节点。

#3


0  

Node JS

Node JS

  • Node.js is a platform built on Chrome's JavaScript runtime for easily building fast, scalable network applications.

    节点。js是在Chrome的JavaScript运行时构建的平台,可以轻松构建快速、可伸缩的网络应用程序。

  • Real-Time services (Chat, Games etc)

    实时服务(聊天、游戏等)

NPM

NPM

  • Npm is a package manager. Typically this software is installed to build Node applications.

    Npm是一个包经理。通常,安装该软件是为了构建节点应用程序。

  • It let's you install software (libraries, plugins, frameworks and applications).

    它允许您安装软件(库、插件、框架和应用程序)。

#1


17  

First of all, it does not ask you to install Node.js runtime OR npm package manager, it offers you to install them both (if you want)

首先,它不要求您安装Node。js运行时或npm包管理器,可以同时安装它们(如果需要)

Now, Node.js runtime is basically what will understand your javascript code and execute it to produce a result.

现在,节点。js运行时基本上就是理解javascript代码并执行它以产生结果的东西。

Npm package manager is a tool which will allow you to install third party libraries (other people's code) by using the command line.

Npm包管理器是一个工具,它允许您使用命令行安装第三方库(其他人的代码)。

npm install express

will install the framework called express for example.

将安装称为express的框架。

#2


2  

  • Node and Nodejs are the same. Interchangeable names for the same thing. Unless someone is talking about graph theory, trees or data structures.
  • Node和Nodejs是相同的。同一事物的可互换名称。除非有人在讨论图论、树或数据结构。
  • Nvm is a Nodejs version manager. It let's you easily install and switch between versions. It retains globally installed packages for each version.
  • Nvm是一个Nodejs版本管理器。它让您轻松地安装和切换版本。它保留了每个版本的全局安装包。
  • Npm is a package manager. It let's you install software (libraries, plugins, frameworks and applications). Typically this software is installed to build Node applications. Sometimes it isn't.
  • Npm是一个包经理。它允许您安装软件(库、插件、框架和应用程序)。通常,安装此软件是为了构建节点应用程序。有时它不是。

Put more simply. Npm depends on Node. Nvm installs Node.

将更简单。Npm取决于节点。Nvm安装节点。

#3


0  

Node JS

Node JS

  • Node.js is a platform built on Chrome's JavaScript runtime for easily building fast, scalable network applications.

    节点。js是在Chrome的JavaScript运行时构建的平台,可以轻松构建快速、可伸缩的网络应用程序。

  • Real-Time services (Chat, Games etc)

    实时服务(聊天、游戏等)

NPM

NPM

  • Npm is a package manager. Typically this software is installed to build Node applications.

    Npm是一个包经理。通常,安装该软件是为了构建节点应用程序。

  • It let's you install software (libraries, plugins, frameworks and applications).

    它允许您安装软件(库、插件、框架和应用程序)。