Yeh, NPM is VERY different. If you just want one thing, well tough luck, almost every NPM has a bazillion dependencies, so how do you donate to just 1 noodle in the spaghetti mess?
NPM is not even worth using today. Just find the exact part of code you want from the NPM itself and snip it out. Maybe early on NPM was useful, but today it's just a dependency nightmare that uses an obscene amount of package installers. I've seen numerous times that if all I wanted was that 40 lines of code, I'd have to install yet another "I'm cool" package installer.... crazy shit.