Prepare your local environment by installing the Node.js JavaScript runtime
environment, Node package manager (npm), and the ui-component extension. These
tools enable you to develop and build components locally and deploy them to your instance.
Before you begin
The ui-component extension only supports these operating systems.
- Windows 10
- MacOS Yosemite and later
- Linux CentOS v7.5
Role required: none
Procedure
-
Install Node.js version 12.16.1 or greater.
npm automatically installs as part of the Node.js package. Node.js is a JavaScript runtime environment that enables you to execute JavaScript locally. npm is the default JavaScript package manager for Node.js. For more
information, see
Node.js and
npmjs.com.
-
Add the ui-component extension to the ServiceNow CLI.
-
Open your system's command-line tool and execute this command.
$ snc extension add --name ui-component
-
Verify the installation by running an extension command with the
--help argument.
$ snc ui-component --help