philfleck / ragrug-nodered

Other
0 stars 0 forks source link

Installing this node-red package uninstalls all other packages #1

Open A7exSchin opened 2 years ago

A7exSchin commented 2 years ago

I am installing this package alongside others via

RUN npm install --prefix /nrm \
    @ragrug/ragrug-nodered \
    flat \
    node-red-contrib-flat \
    node-red-dashboard \
    node-red-contrib-python-function \
    node-red-contrib-influxdb \
    node-red-node-cf-cloudant \
    node-red-contrib-md5 \
    node-red-node-ui-table \
    node-red-node-ui-list \
    node-red-contrib-ui-upload \
    node-red-contrib-re-postgres \
    node-red-contrib-file-upload

This is the result in node-red: image

I also tried version 1.3.1 which didn't help with that. When installing the package manually in the GUI it removes most of the node modules in the folder and a lot of Icons are missing.

philfleck commented 2 years ago

Hi,

we are currently in the process of switching to the node-red dockerhub image which avoids compiling the node-red docker-image (see here https://hub.docker.com/r/nodered/node-red/).

so far my tests with node-red version 2.2.2 looked good withou any issues.

to manually install the package i use npm install, which worked for me. i dont know if there is any defect in the packege. When installing it through the nodered palette i do not run in any issues (see https://flows.nodered.org/node/@ragrug/ragrug-nodered).

i did not experience this behavior:

nr_ragrug_v131

nrd_build-and-run-local-docker-dev.sh.txt

A7exSchin commented 2 years ago

Thanks for the quick answer! How do you manage needed packages when using the official node-red image? Do you install them manually in the WebUI?

philfleck commented 2 years ago

this is one way. i did some test on using npm install on the host machine on the mounted folder (mnt/node-red/node_modules) which seems to work if npm uses the same version. But there room for improvement. Usually, once it is setup, do not regularly chnage the packets installed, therefore it is a one-time effort.

but we are looking into that. best p