linemanjs / lineman

Lineman helps you build fat-client JavaScript apps. It produces happiness by building assets, mocking servers, running specs on every file change
MIT License
1.18k stars 83 forks source link

Stop recommending the use of sudo for installation #325

Closed airtonix closed 9 years ago

airtonix commented 9 years ago

Instead recommend something like this :

$ echo "prefix = ~/.npm/" > ~/.npmrc
$ echo """export NPM_PACKAGES="~/.npm/"
export NODE_PATH="$NPM_PACKAGES/lib/node_modules:$NODE_PATH"
""" >> ~/.bashrc

Now you can :

:)

edit: just noticed, the latest README doesn't use sudo, but the website does.

searls commented 9 years ago

That's too long and confusing IMO. If somebody cares about either of those cases then they'll know to do it themselves. What if they're using nvm to solve the same problem? Why don't any other node-based CLI's recommend this? Why doesn't npm have more robust support for global modules? What if they're on windows?

For most users the given instructions are the simplest and most sure fire way to get lineman to work. If their needs are more nuanced then they can install it locally or with a version manager or as you described.

On Wed, Sep 24, 2014 at 7:10 PM, Zenobius Jiricek notifications@github.com wrote:

Instead recommend something like this :

$ echo "prefix = ~/.npm/" > ~/.npmrc
$ echo """export NPM_PACKAGES="~/.npm/"
export NODE_PATH="$NPM_PACKAGES/lib/node_modules:$NODE_PATH"
""" >> ~/.bashrc

Now you can :

airtonix commented 9 years ago

If your on windows the same logic applies... You're not going to have sudo there.

This is in fact what I do on windows, because there is no docker. On 25/09/2014 9:28 am, "Justin Searls" notifications@github.com wrote:

That's too long and confusing IMO. If somebody cares about either of those cases then they'll know to do it themselves. What if they're using nvm to solve the same problem? Why don't any other node-based CLI's recommend this? Why doesn't npm have more robust support for global modules? What if they're on windows?

For most users the given instructions are the simplest and most sure fire way to get lineman to work. If their needs are more nuanced then they can install it locally or with a version manager or as you described.

On Wed, Sep 24, 2014 at 7:10 PM, Zenobius Jiricek notifications@github.com wrote:

Instead recommend something like this :

$ echo "prefix = ~/.npm/" > ~/.npmrc
$ echo """export NPM_PACKAGES="~/.npm/"
export NODE_PATH="$NPM_PACKAGES/lib/node_modules:$NODE_PATH"
""" >> ~/.bashrc

Now you can :

— Reply to this email directly or view it on GitHub https://github.com/linemanjs/lineman/issues/325#issuecomment-56756854.