Add npm modules

In this topic, you learn how to add npm modules to your DXP - Open Edition. There are two ways to add new npm modules:

  • Browse for npm modules on the web.

  • Import a module from your system.

Prerequisites

  • There are no prerequisites.

Procedure

  1. In the Cockpit, go to Development and click npm Modules.

    Result: A table with all npm modules that are installed appears.

  2. Click Add.

    Result: The Search npm Module dialog opens.

    npm modules new

Add a new npm module from your local system

  1. Click Local to search for npm modules already existing on the server.

    Result: The NPM Modules window opens. You start in the General tab.

  2. Enter the Name of the module.

  3. Enter the Description, Version Number, and the local Path of the module.

  4. Click Save.

Add a new npm module from a remote server

  1. In the search field, enter the name of the module and press Enter. Result: A list with corresponding npm modules appear.

  1. Click the module you want to add to your instance. Result: A new dialog appear.

  2. Select the version of the module and confirm with Select.

    Result: The module is installed to your instance of DXP - Open Edition.

Results

  • You have added a new npm module to your DXP - Open Edition instance.