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

  • Learn WebAssembly
  • Mike Rourke
  • 139字
  • 2021-08-13 15:38:58

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.
主站蜘蛛池模板: 华阴市| 沂南县| 利川市| 陕西省| 南部县| 增城市| 永德县| 仪征市| 和硕县| 綦江县| 翼城县| 绿春县| 杭州市| 八宿县| 左权县| 商城县| 尼木县| 乌兰浩特市| 高台县| 绍兴县| 黄梅县| 德安县| 阳朔县| 津南区| 奎屯市| 黄梅县| 侯马市| 锡林浩特市| 桂平市| 广汉市| 和硕县| 平度市| 尼木县| 象山县| 玉山县| 文安县| 旬阳县| 根河市| 仁怀市| 青田县| 阿拉善右旗|