安装 Node.js 驱动程序

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

先决条件

  • 您希望安装驱动程序的环境中必须已经安装了 Node.js。
  • You need to be able to run the node and npm commands.
  • Depending on your environment, you may need sudo privileges.

For a list of the operating systems supported by Snowflake clients, see Operating system support.

安装驱动程序

The Node.js driver (snowflake-sdk) is available directly from npm.

要安装驱动程序,请打开终端窗口并输入以下命令:

npm install snowflake-sdk

The command downloads and installs the Snowflake Node.js driver. The driver should now appear in your node_modules directory and you should be able to use the driver using require('snowflake-sdk').