Fix incorrect call to state.single in npm pkgs test
Removed unused format() arg in npm state

Closes #14885. Thanks @cvrebert.
Merge pull request #14895 from whiteinge/npm-cleanup

Fix npm test; npm state pylint fix