安装 node.JS 时,node.js 运行时和 npm 包管理器选项有什么区别? [英] What is the difference between node.js runtime and npm package manager options while installing node.JS?

查看:52
本文介绍了安装 node.JS 时,node.js 运行时和 npm 包管理器选项有什么区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试通过下载 .exe 文件来安装 node.js,我很困惑并卡在 Node.js 设置中,其中要求安装 node.js 运行时npm 包管理器,所以我想在完全了解两者之间的区别后继续安装.

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.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 options.

我安装node.js的基本目的是编译Typescript,请大家帮我了解一下这两个包的特点

My basic purpose of installing node.js is to compile Typescript, Please help me to understand the features of the two package

推荐答案

首先,它不会要求您安装 Node.js 运行时或 npm 包管理器,它会提供您安装它们(如果需要)

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 运行时基本上可以理解您的 javascript 代码并执行它以产生结果.

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

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

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 install express

将安装名为 express 的框架.

will install the framework called express for example.

这篇关于安装 node.JS 时,node.js 运行时和 npm 包管理器选项有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆