The server-side engine relies on Node.js, which the SDK can install and keep up to date for you through the StiNodeJs helper.

Install Node.js and update packages.
nodejs = StiNodeJs()

# Optionally point at an existing install / working directory
# nodejs.binDirectory = '/usr/bin/nodejs'
# nodejs.workingDirectory = ''

result = nodejs.installNodeJS()
if result:
    result = nodejs.updatePackages()

message = 'The installation was successful.' if result else nodejs.error

How it works. The helper provisions the Node.js runtime the server-side engine needs, so headless rendering works without a manual install.

Hi. Need any help?