Closed airtonix closed 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 :
npm instal -g lineman
without sudonot pollute the nodejs modules of all users on the machine. :)
Reply to this email directly or view it on GitHub: https://github.com/linemanjs/lineman/issues/325
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 :
npm instal -g lineman
without sudonot pollute the nodejs modules of all users on the machine. :)
Reply to this email directly or view it on GitHub: https://github.com/linemanjs/lineman/issues/325
— Reply to this email directly or view it on GitHub https://github.com/linemanjs/lineman/issues/325#issuecomment-56756854.
Instead recommend something like this :
Now you can :
npm install -g lineman
without sudo:)
edit: just noticed, the latest README doesn't use sudo, but the website does.