diff --git a/.npmrc b/.npmrc new file mode 100644 index 0000000..b6f27f1 --- /dev/null +++ b/.npmrc @@ -0,0 +1 @@ +engine-strict=true diff --git a/docs/src/almalinux8_instructions.rst b/docs/src/almalinux8_instructions.rst index d2c0faf..c32f28b 100644 --- a/docs/src/almalinux8_instructions.rst +++ b/docs/src/almalinux8_instructions.rst @@ -11,12 +11,12 @@ Step-by-step instructions for AlmaLinux 8 1. Install Node.js ~~~~~~~~~~~~~~~~~~ -The CARTA controller uses `Node.js `_ and supports v12, v14, and v16. Node.js can easily be installed from the AlmaLinux 8 AppStream repository. Here we install v14, as well as the ``npm`` package manager. +The CARTA controller uses `Node.js `_, which can easily be installed from the AlmaLinux 8 AppStream repository. We recommend using the `latest LTS version `_. The oldest version known to work with the controller is v16. Here we install v20, as well as the ``npm`` package manager. .. code-block:: shell - # Install Node.js v14: - sudo dnf module enable nodejs:14 + # Install Node.js v20: + sudo dnf module enable nodejs:20 sudo dnf install -y nodejs npm # Check it is installed and working: diff --git a/docs/src/ubuntu_focal_instructions.rst b/docs/src/ubuntu_focal_instructions.rst index 19b2cfd..501994a 100644 --- a/docs/src/ubuntu_focal_instructions.rst +++ b/docs/src/ubuntu_focal_instructions.rst @@ -74,7 +74,7 @@ Install CARTA controller .. note:: - Currently supported versions of NodeJS are v12, v14 and v16. In the example below we install the latest LTS version of NodeJS from the `NodeSource repo `_. Do not pass the ``--unsafe-perm`` flag to ``npm`` if using a local install. + We recommend using the `latest LTS version `_ of NodeJS. The oldest version known to work with the controller is v16. In the example below we install the latest LTS version from the `NodeSource repo `_. Do not pass the ``--unsafe-perm`` flag to ``npm`` if using a local install. .. code-block:: shell diff --git a/package-lock.json b/package-lock.json index 545276f..3173c23 100644 --- a/package-lock.json +++ b/package-lock.json @@ -65,6 +65,9 @@ "prettier": "2.8.4", "ts-node": "^10.9.1", "typescript": "^4.9.5" + }, + "engines": { + "node": ">=16" } }, "node_modules/@aashutoshrathi/word-wrap": { diff --git a/package.json b/package.json index eed360c..db8caf4 100644 --- a/package.json +++ b/package.json @@ -71,5 +71,8 @@ "prettier": "2.8.4", "ts-node": "^10.9.1", "typescript": "^4.9.5" + }, + "engines": { + "node": ">=16" } }