I am curious about the way Javascript's npm handles dependencies in terms of installation. Does it install dependencies on an OS-wide level similar to how Python's pip operates without a virtualenv? Or does npm handle installations more like Java's mvn, which store dependencies in a local pom.xml file (making it feel like always being in a virtualenv compared to pip)?
My main question revolves around whether npm performs OS-wide installs or local installs.