top | item 20304043

(no title)

anc84 | 6 years ago

The majority of npm based installation instructions I encounter "out there" are using "npm install -g".

discuss

order

hombre_fatal|6 years ago

Well, that would be up to the user to decide. And you don't generally install project deps that way beyond some dev-deps like linters and test runners.

WorldMaker|6 years ago

Even that guidance has changed with the cultural acceptance of `npx`. At this point the only thing that should be `npm install -g` is npm itself, and that only depending on your philosophy of how current you need to keep npm versus the version that ships with your NodeJS install.

bassman9000|6 years ago

Everyone installs npm globally, because the whole model is broken. Which is why we keep all node env in a Docker image.