It's not unique, but apt/pacman does not run arbitrary scripts. It runs what has been reviewed by others while npm packages are often not reviewed by anyone except the author, that's the difference.
Re:Do not use NPM 5.7
by paulddraper on Friday February 23, 2018 @05:18PM
(#16450118)
So you're saying it's not the tool or packaging format. It's the curation of the repositories that npm/apt/pacman users tend to consume.
Debatable but irrelevant.
I'm not saying npm is a good or bad system package manager, just that running arbitrary scripts for requested packages and their dependencies is hardly unique.
It's oblivious to single out npm as a package manager that allows you to be pwned by packages in whatever repo you pull from.