3.6.2 Using Node.js on hosting

Node.js

Node.js or as it is also called “Node” is a software environment that allows you to execute JavaScript code in a server hosting environment. This environment is a dependency for many modern engines (CMS) and frameworks.

On hosting TheHost Node.js is supported by all tariff plans Premium Hosting, as well as Reselling Hosting.

All stable LTS versions of Node.js are available to our hosting users:

  • Node.js 16 (Codename “Gallium”, installed by default)
  • Node.js 14 (Codename “Fermium”)
  • Node.js 12 (Codename “Erbium”)

By default, the Node.js 16 version is available to hosting subscribers, but if during your work you need a different version, you can use it using one of the proposed schemes below.

To use Node.js 16 use the following commands:

  • nodeor node-16 – Node.js v16 interpreter
  • npm or npm-16 – launches the npm package manager included with Node.js v16
  • npx or npx-16 – launch the npx utility included in Node.js v16
  • yarn or yarn-16 – launches the yarn package manager installed in Node.js v16

To use Node.js 14 use the following commands:

  • node-14 – Node.js v14 interpreter
  • npm-14 – launches the npm package manager included with Node.js v14
  • npx-14 – launch the npx utility included in Node.js v14
  • yarn-14 – launches the yarn package manager installed in Node.js v14

To use Node.js 12 use the following commands:

  • node-12 – Node.js v12 interpreter
  • npm-12 – launches the npm package manager included with Node.js v12
  • npx-12 – launch the npx utility included in Node.js v12
  • yarn-12 – launches the yarn package manager installed in Node.js v12

It is important to understand: Node.js on hosting can only be used to run npm or yarn package managers, as well as to solve dependency problems in modern CMS or frameworks. Running individual web services or daemons based on Node.js on hosting is not available. This can only be implemented within the framework of the Virtual Servers VPS/VDS or Dedicated Physical Servers services, where the user can be provided exclusive access to the server.