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

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
主站蜘蛛池模板: 梁平县| 泽库县| 旌德县| 开封县| 鲜城| 渝北区| 黑龙江省| 台南县| 莆田市| 洛隆县| 泰和县| 宕昌县| 砀山县| 波密县| 英吉沙县| 石门县| 晋城| 寿宁县| 富裕县| 德清县| 宜城市| 洪江市| 石阡县| 山阳县| 彩票| 外汇| 黄龙县| 延津县| 宝兴县| 海丰县| 万州区| 福安市| 潜山县| 拉萨市| 理塘县| 开江县| 绥德县| 甘肃省| 卫辉市| 柏乡县| 中宁县|