Help Center/ Content Moderation/ SDK Reference/ Using the Node.js SDK/ Preparing a Node.js Development Environment
Updated on 2025-07-02 GMT+08:00

Preparing a Node.js Development Environment

The JavaScript SDK of Content Moderation depends on the Node.js environment.

  1. Download the recommended version from the Node.js official website and install it. Node.js 8.x or later is recommended. The following uses Node.js 8.12.0 as an example.
  2. Download the latest version of WebStorm from WebStorm's official website.
  3. On the WebStorm page, choose File > Settings > Languages & Frameworks > Node.js and NPM to configure the Node.js environment.
  4. Select the Node.js and NPM installation path, as shown in Figure 1. After selecting the target Node.js and NPM, click Apply at the bottom of the page to complete the configuration.

    The JavaScript SDK of Content Moderation needs to depend on the moment-timezone and moment modules. You can run the npm install command to install the SDK, or click + in Figure 1 to install the SDK using a tool.

    Figure 1 Configure the Node.js environment