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

Installing Node.js

If you're a macOS user, the easiest way to install Node.js is through a package manager such as Homebrew or MacPorts. For best compatibility with the examples in this book, install Node.js version 9.4.0 or greater.

Windows users can also use the Chocolatey package manager to install Node.js, otherwise you may follow the instructions on the Node.js current download page: https://nodejs.org/en/.

Linux users should be careful if installing Node.js through their distribution's package manager, as the shipped version of Node.js may be a much older version. If your package manager uses a version older than V8, you may either add a repository to your package manager, build from source, or install from binary, as appropriate for your system.

Once you've installed Node.js, ensure that it runs and is the correct version by running node --version from the command line. The output will look like the following:

$ node --version
V9.4.0

This is also a good time to test that npm also works:

$ npm --version
5.6.0
主站蜘蛛池模板: 永嘉县| 勃利县| 古丈县| 龙州县| 铜川市| 河源市| 东平县| 武穴市| 白城市| 兴仁县| 莆田市| 手游| 云安县| 双鸭山市| 岐山县| 大埔区| 荣昌县| 芦溪县| 兴仁县| 京山县| 海口市| 容城县| 耒阳市| 托克逊县| 会昌县| 夏津县| 保定市| 保康县| 沙湾县| 商都县| 肃宁县| 东乡县| 泽州县| 锦州市| 昆明市| 锦屏县| 汽车| 贺兰县| 县级市| 阳东县| 宝坻区|