issue #24104: npm extension bugfixes
issue #24104: refactor priv check to model
issue #24104: pass through error message
issue #24104: add comment
Merge pull request #1676 from shackbarth/24104-npm

issue #24104: bugfixes to npm extension install