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

Installing Node.js using nvm

After installing nvm, you need to install the version of Node.js we will use in this book: version 8.11.1. To install it, run this command:

nvm install 8.11.1

If you didn't have Node.js or nvm previously installed, it will automatically set this to your default Node.js installation, so the output of this command should be v8.11.1:

node --version

If you have existing Node.js versions installed, you can either use v8.11.1 as a default, or ensure that you run this command to use v8.11.1 when working through the examples in this book:

nvm use 8.11.1
You can create a file named .nvmrc in the folder with your code and populate it with the contents v8.11.1. You can run nvm use within this directory and it will set the version to 8.11.1 without having to specify it.
主站蜘蛛池模板: 上高县| 霍林郭勒市| 丽江市| 咸阳市| 深圳市| 大冶市| 永州市| 忻城县| 巴青县| 云霄县| 宁城县| 武宁县| 海淀区| 台东市| 普兰店市| 霍山县| 江油市| 西乌珠穆沁旗| 岳池县| 丹寨县| 衡阳市| 江阴市| 樟树市| 山阳县| 儋州市| 营口市| 兴海县| 汝州市| 海盐县| 安国市| 渝北区| 武胜县| 湘西| 凌云县| 涪陵区| 政和县| 团风县| 织金县| 望江县| 丰顺县| 张家口市|