Skip to main content

Installing the Node.js Driver

This topic describes how to install the Node.js driver using npm, the default package manager for the Node.js JavaScript runtime environment.

Prerequisites

  • Node.js must already be installed in the environment where you wish to install the driver.

  • You need to be able to run the node and npm commands.

  • Depending on your environment, you may need sudo privileges.

Installing the Driver

npm install --save mysql