Node.js 中文网

Node.js 中文网

如何安装 Node.js

¥How to install Node.js

Node.js 可以通过不同的方式安装。这篇文章重点介绍了最常见和最方便的代码。所有主要平台的官方软件包均可在 nodejs.cn/download/ 获得。

¥Node.js can be installed in different ways. This post highlights the most common and convenient ones. Official packages for all the major platforms are available at nodejs.cn/download/.

一种非常方便的安装 Node.js 的方法是通过包管理器。在这种情况下,每个操作系统都有自己的。nodejs.cn/download/package-manager/ 中列出了适用于 macOS、Linux 和 Windows 的其他软件包管理器。

¥One very convenient way to install Node.js is through a package manager. In this case, every operating system has its own. Other package managers for macOS, Linux, and Windows are listed in nodejs.cn/download/package-manager/.

nvm 是一种流行的运行 Node.js 的方式。它允许你轻松切换 Node.js 版本,并安装新版本以尝试在出现故障时轻松回滚。使用旧版本的 Node.js 测试代码也非常有用。

¥nvm is a popular way to run Node.js. It allows you to easily switch the Node.js version, and install new versions to try and easily rollback if something breaks. It is also very useful to test your code with old Node.js versions.

有关此选项的更多信息,请参阅 https://github.com/nvm-sh/nvm。

¥See https://github.com/nvm-sh/nvm for more information about this option.

无论如何,安装 Node.js 后,你都可以在命令行中访问 node 可执行程序。

¥In any case, when Node.js is installed you'll have access to the node executable program in the command line.

上一个Node.js 简介下一步使用 Node.js 需要了解多少 JavaScript?

相关推荐

范冰冰到底多有钱?看看她的豪宅就知道,罚款8亿都没让她卖房子
米币怎么获得,赛尔号刷米币,赛尔号手游快速刷米币攻略
甾体化合物:自然界中的结构多样性、生物学功能与跨学科研究进展
115 安卓版特别卡,界面操作卡顿,点什么都要等好久
前 8 名反向图像搜索应用程序
黑魂3古达戒指
365bet中文版

黑魂3古达戒指

📅 07-15 👁️ 6229
10个免费PR模板网站推荐!(不定期更新)
我是怎样认识和改变自己的性格 不知道有没有人和我一样,一直在思考“为什么我是我”这个问题,我写了一个系列文章,试图回答这个问题,我把我的个人经历分享出...
日日樹涉
365速发国际购彩中心

日日樹涉

📅 09-22 👁️ 6985