ZJ van de Weg 54d4079457 npm: Remove production flag on npm invocation
When installing packages the `--production` flag used to be added to the
arguments that `npm` received. As npm wants developers to use the
`--omit=dev` flag instead it warned users on STDERR. Standard error was
captured by Node-RED and output to the logs as being an error. This
caught users off-guard and they expected something to have gone
wrong.

With this change the `--omit=dev` is used instead, to remove the
warning.

This change works for NPM of version 8 and beyond[1], included in
Node.JS 16. This change will not work on NPM version 6[2] which is included
in Node.JS 14[3].

[1]: https://docs.npmjs.com/cli/v8/commands/npm-install#omit
[2]: https://docs.npmjs.com/cli/v6/commands/npm-install
[3]: https://nodejs.org/en/download/releases#looking-for-latest-release-of-a-version-branch
2023-09-17 08:43:11 +02:00
..
2018-10-25 11:18:13 +01:00
2022-01-27 12:49:48 +00:00
2023-09-06 14:45:45 +01:00
2018-08-21 13:43:11 +01:00

@node-red/registry

Node-RED node registry module.

This provides the node registry, responsible for discovering and managing the node modules available to the Node-RED runtime.

Source

The main Node-RED modules are maintained as a monorepo on GitHub.