Hi
I'm trying to update node-red-node-email from Node-red's manage pallete section, but it throws error that the module is not installed locally.
So after reading forums I found out that I need to see where my module is initially installed and for that I ran the command npm ls -g node-red-node-email which returned the following result:
However, when I install the module globally (as per forums instructions) with the command sudo npm ls -g node-red-node-email and re-run the npm ls -g node-red-node-email command, so the hierarchy ends up like this:
Is it safe to delete the folder rather than uninstalling the module properly?
I mean, doesn't npm keep track of modules installed and later complain when missing without uninstalling?
I'm not fully convinced with deleting the module folder part. This is what I did: sudo npm uninstall -g node-red-node-email
and it outputs: up to date in 0.038s
which means uninstall did nothing.
later I called: sudo npm ls -g node-red-node-email
and it outputs:
then I removed the module folder as you suggested: sudo rm -r /usr/lib/node_modules/node-red/node_modules/node-red-node-email
and re-printed the module status, and this time I get the following:
As I pointed earlier, node-red keeps track of installed modules and deleting the module-folder just like that doesn't seem the right way.
waqas@aslam:~/.node-red$ npm i node-red-node-email
npm WARN deprecated mailparser@0.6.2: Mailparser versions older than v2.3.0 are deprecated
npm WARN deprecated mimelib@0.3.1: This project is unmaintained
+ node-red-node-email@1.0.1
added 19 packages from 12 contributors in 1.47s
Showing local listing:
waqas@aslam:~/.node-red$ sudo npm ls node-red-node-email
node-red-project@0.0.1 /home/waslam/.node-red
└── node-red-node-email@1.0.1
Showing global listing:
waqas@aslam:~/.node-red$ sudo npm ls -g node-red-node-email
/usr/lib
└─┬ node-red@0.19.2
└── UNMET DEPENDENCY node-red-node-email@0.1.*
npm ERR! missing: node-red-node-email@0.1.*, required by node-red@0.19.2
I'm not sure I undestand you.
I just did an uninstall following the doc but actually it doesn't uninstall (probably because it's installed in the node-red path) so I've removed the folder with all the included files manually.