Supergiovane / node-red-contrib-knx-ultimate

Control your KNX intallation via Node-Red! A bunch of KNX nodes, with integrated Philips HUE control and ETS group address importer.
https://youtu.be/egRbR_KwP9I
MIT License
141 stars 34 forks source link

Install Error WARN config production Use `--omit=dev` instead. #328

Closed 19dexter86 closed 5 months ago

19dexter86 commented 5 months ago

Hello, I have node red running on a Pi 4. When updating to the beta I get the error message: WARN config production Use --omit=dev instead.

I am using npm 10.2.4 After the failed update knx ultimate was uninstalled. i am not able to install it again.

Supergiovane commented 5 months ago

Please be sure to have at least node v16 (issue a node -v command). Your system may not allow to install betas. Please revert to a previous version. https://www.mend.io/free-developer-tools/blog/npm-how-to-install-a-specific-version-of-node-js-package/#:~:text=an%20installed%20package.-,Use%20npm%20install%20%5Bpackage%2Dname%5D%40%5Bversion%2Dnumber%5D,minor%20or%20patch%20version%2C%20respectively.

You can revert to any non "beta" version.

19dexter86 commented 5 months ago

I am using nodejs v20.11.0

I have done the following:

pi@raspberrypi:~ $ npm i node-red-contrib-knx-ultimate@2.4.4
added 52 packages in 9s
10 packages are looking for funding
run `npm fund` for details

but KNX Ultimate cannot be found in node red. Not even after a restart. How does the installed package get into node red? Where can I download the tgz file alternatively?

Supergiovane commented 5 months ago

Hi David you must issue the npm i node-red-contrib-knx-ultimate@2.4.4 command, from your .node-red/node_modules folder.

Supergiovane commented 5 months ago

Hi David solved the issue?

19dexter86 commented 5 months ago

Hi and thank you very much. Yes, I got it working thanks to your hint. The 2.4.4 is running stable. How can you be sure that a future update to 2.4.5 will work? Will this bug be fixed in the beta?

Supergiovane commented 5 months ago

Hi David there are no bugs. The "beta" version is marked internally as "beta", so you can install it only either your node-red allows it, or you manually install the beta with the npm option --omit=dev There will be another beta (2.4.5-beta.1) out shortly, then the official 2.4.5 release should be out the next week.

19dexter86 commented 5 months ago

ok but why was I able to install 2.4.4 without errors and not 2.4.5?

Edit: ah sry I think I know what you mean. My node red does not allow beta although I could select it?

Supergiovane commented 5 months ago

Hi David, there are developer dependencies into the package.json file of the beta. These developer dependencies are used by the developers. If you manually install knx-ultimate using npm and the option --omit=dev, you'll be able to install the beta as well. The upcoming official release will install without issues.