The real problem with npm and JavaScript is not the package manager, it is the lack of a standard library bundled with the runtime that has such basic functions. To someone coming to JavaScript from a Java/C# world, the fact that a package like isArray actually exists, nevermind the ridiculous number of downloads it has, is mind boggling. Using a dependency like this on a Java project will get you crucified in any sane team.
If you want to get out of this dependency hell, bundle these small, essential functions into the runtime.
If you want to get out of this dependency hell, bundle these small, essential functions into the runtime.