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

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
主站蜘蛛池模板: 伊川县| 康乐县| 灌阳县| 房山区| 赣州市| 大余县| 丁青县| 梁山县| 冀州市| 扶绥县| 嵊泗县| 青河县| 黄梅县| 临汾市| 和平县| 冀州市| 建阳市| 玉树县| 界首市| 阳新县| 大英县| 达拉特旗| 滕州市| 耿马| 原阳县| 白玉县| 张掖市| 巴彦淖尔市| 萨嘎县| 怀柔区| 盐山县| 偏关县| 北辰区| 麻阳| 崇阳县| 鹿邑县| 呼玛县| 醴陵市| 太湖县| 上饶市| 巢湖市|