-
Notifications
You must be signed in to change notification settings - Fork 14
Description
Issue
The following CI workflows are using npm install options which do not work on Node.js >= 16 (npm >= 8):
- .github/workflows/test-macos.yml
- .github/workflows/test-ubuntu.yml
- .github/workflows/test-windows.yml
- .github/workflows/lint.yml
The lowest supported Node.js version is v18.0.0, which bundles npm v8.6.0.
only=prod
Run npm install --only=prod
npm warn config only Use `--omit=dev` to omit dev dependencies from the install.
only=dev
Run npm install --only=dev
npm WARN invalid config only="dev" set in command line options
npm WARN invalid config Must be one of: null, prod, production
Since the repo contains no production dependencies to install, only devDependencies, logging the installation of the two types of dependencies separately seems to be overkill. (See package.json.)
Reference
https://docs.npmjs.com/cli/v6/commands/npm-install
The --only={prod[uction]|dev[elopment]} argument will cause either only devDependencies or only non-devDependencies to be installed regardless of the NODE_ENV.
https://docs.npmjs.com/cli/v10/using-npm/config#include
Default:
Type: "prod", "dev", "optional", or "peer" (can be set multiple times)
https://docs.npmjs.com/cli/v10/using-npm/config#omit
Default: 'dev' if the NODE_ENV environment variable is set to 'production', otherwise empty.
Type: "dev", "optional", or "peer" (can be set multiple times)