I have installed the tar-module using
npm install -g tar
When I type
npm list -g --depth=0
I can see the entry tar@6.1.0 in the module-tree, however when I try to require it in a js-file const tar = require("tar"), I get the error message
Uncaught Exception:
Error: Cannot find module 'tar'
What am I missing?