官术网_书友最值得收藏!

Installing the Node.js distribution from nodejs.org

The https://nodejs.org/en/ website offers built-in binaries for Windows, macOS, Linux, and Solaris. We can simply go to the website, click on the Install button, and run the installer. For systems with package managers, such as the ones we've just discussed, it's preferable to use the package management system. That's because you'll find it easier to stay up-to-date with the latest version. But, that doesn't serve all people because:

  • Some will prefer to install a binary rather than deal with the package manager
  • Their chosen system doesn't have a package management system
  • The Node.js implementation in their package management system is out-of-date

Simply go to the Node.js website and you'll see something like the following screenshot. The page does its best to determine your OS and supply the appropriate download. If you need something different, click on the DOWNLOADS link in the header for all possible downloads:

For macOS, the installer is a PKG file giving the typical installation process. For Windows, the installer simply takes you through the typical Install Wizard process.

Once finished with the installer, you have command-line tools, such as node and npm, with which you can run Node.js programs. On Windows, you're supplied with a version of the Windows command shell preconfigured to work nicely with Node.js.

主站蜘蛛池模板: 桂阳县| 松桃| 盐亭县| 眉山市| 诏安县| 大方县| 韶山市| 宜兰市| 陵水| 革吉县| 平潭县| 涞水县| 施甸县| 丹寨县| 伽师县| 常州市| 高平市| 浠水县| 无极县| 永年县| 舟山市| 扬州市| 朔州市| 白城市| 固原市| 杂多县| 黄陵县| 安多县| 绥棱县| 隆化县| 昆明市| 敦煌市| 金沙县| 瑞金市| 德清县| 肇庆市| 金华市| 河北省| 闻喜县| 奉节县| 罗江县|