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

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
主站蜘蛛池模板: 岳普湖县| 景洪市| 台山市| 广东省| 宁远县| 荣昌县| 黔江区| 南木林县| 嘉峪关市| 昭觉县| 广州市| 高邮市| 晋州市| 慈溪市| 甘南县| 泊头市| 民勤县| 武宁县| 新竹县| 壤塘县| 安图县| 乐昌市| 岚皋县| 锡林浩特市| 吉木乃县| 武冈市| 九台市| 咸阳市| 大足县| 炉霍县| 上饶市| 类乌齐县| 罗源县| 团风县| 康马县| 婺源县| 漳州市| 天柱县| 成安县| 新昌县| 许昌县|