Question: npm general usage

I was wondering if npm is to be used to install packages globally just like gem install, or if it is a tool for project directories similar to bundler?

1 Like

It is both.

For example, you might install a tool like yo or forever globally:

$> npm install -g forever

Other things, like your project dependencies, you install local to the project:

$> npm install --save ramda

2 Likes