Appendix A. Setting up Node.js and npm

 

This appendix covers

  • Installing Node.js and npm
  • Managing Node.js versions with fnm
  • Alternatives to Node.js and npm

This appendix is a quick start guide to get you up and running with Node.js and npm. By the end of this appendix, you’ll be equipped with the node, npm, and npx commands used from Chapter 2 on. You’ll also know how to manage multiple Node.js versions on your development machine. (Any recent version should work fine for the activities in this book.)

Lastly, although this book will only use Node.js and npm, there are alternative options that you might want to consider for your own projects. The last section of appendix will give a brief overview of some of those alternatives.

A.1 Installing Node.js with a version manager

A.2 Alternatives to Node.js

A.3 Alternatives to npm

A.4 Summary