node-red/packages/node_modules/@node-red/registry/lib
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
..
deprecated.js Remove pi gpi, twitter, email and feedparser nodes from core 2019-05-17 14:08:51 +01:00
externalModules.js npm: Remove production flag on npm invocation 2023-09-17 08:43:11 +02:00
index.js Allow module to provide resources and automatically expose them 2021-03-15 21:06:10 +00:00
installer.js npm: Remove production flag on npm invocation 2023-09-17 08:43:11 +02:00
library.js Fixes to fs promises so that electron version runs 2021-09-10 08:33:07 +01:00
loader.js Ensure modules containing plugins and nodes are loaded properly 2023-01-01 19:36:49 +00:00
localfilesystem.js Rename package var to avoid strict more error 2023-01-23 17:44:03 +00:00
plugins.js Improve unit test coverage 2021-10-04 17:53:14 +01:00
registry.js remove debug/test code 2022-10-04 13:36:23 +01:00
subflow.js Use subflow.info for help text and meta.type for node type 2021-01-07 15:34:27 +00:00
util.js Fix importing external module from node-red module 2022-04-21 15:06:08 +01:00