npm Community Forum (Archive)

The npm community forum has been discontinued.

To discuss usage of npm, visit the GitHub Support Community.

npm audit not working - "ERR! code EINVALIDTAGNAME"

npm audit not working - “ERR! code EINVALIDTAGNAME”

After installing a module, e.g. “npm -i install request --save” I get the following message.

found XXX vulnerabilities (XXX low, X moderate, X high)
run ‘npm audit fix’ to fix them, or ‘npm audit’ for details

Both “npm audit” and “npm audit fix” return the same error response:

npm ERR! Invalid tag name “[object Object]”: Tags may not have any characters that encodeURIComponent encodes.

Any ideas?