Hi PMario and duche,
thanks for the try. I forgot to mention, I am working with Windows. So SUDO won't work in the way, you expect. ;)
I fiddled around with the whole stuff and found following situation:
npm -g install tiddlywiki and npm -g update tiddlywiki installing the correct version (5.1.23) in the common repository beneath %appdata%\npm.
Jumping into the directory %appdata%\npm\node-modules\tiddlywiki and executing node tiddlywiki --version starts the correct version 5.1.23.
A call via tiddlywiki --version displayes the version 5.1.22.
Also an update as administrator (equivalent to sudo ...) doesn't change anything.
I even created a VM with a virgin Windows 10 and tested – it was instantly installed and executed tiddlywiki 5.1.23.
So far my testing.
I just uninstalled tiddlywiki via
npm - g uninstall tiddlywiki from the system, but
tiddlywiki --version still executes with return 5.1.22 – so there must be another installation place for node-stuff and NPM-repository. I now start to dive into the filesystem and variables. (PATH and so on. I'll keep you informed about my progress and would appreciate further hints. Bacause there seems to exist a similar "bug" for Linux, maybe this could be an addition to the tiddlywiki-article for
https://tiddlywiki.com/#Upgrading%20TiddlyWiki%20on%20Node.js .
Cheers ToraxMalu