Hey Greelgorke, You're missing the point. I'm suggesting that `npm link` shouldn't do the global thing by default.
Also, if people use package mangers node will end up in /usr/, not /usr/local. Cheers, Phil greelgorke <greelgo...@gmail.com> writes: > http://howtonode.org/introduction-to-npm the paragraph about "what no sudo" > > Am Montag, 25. März 2013 11:44:07 UTC+1 schrieb Phil Jackson: >> >> Hey Floby, >> >> Same here but not everyone does that. >> >> Phil >> >> Floby <floren...@gmail.com <javascript:>> writes: >> >> > I compiled my own node, and I do need to have root access for anything >> > global with npm. >> > >> > On Monday, 25 March 2013 00:21:43 UTC+1, Phil Jackson wrote: >> >> >> >> Hey all, >> >> >> >> I'm wondering why `npm link` installs modules in the global node path? >> >> Before I bothered reading the man page I was doing this: >> >> >> >> $ npm link ../base >> >> >> >> in a project that depends on base. I was just expecting a symlink to >> the >> >> base package in ./node_modules but instead I get a link to a link in >> the >> >> global node path. >> >> >> >> The problem with this is that for developers who have installed node >> via >> >> package managers or somewhere under /usr they now need root access to >> do >> >> an `npm link`. Would a -g option to `npm link` make sense instead of >> >> being global by default? >> >> >> >> Cheers, >> >> Phil Jackson >> >> -- >> >> Apiaxle http://apiaxle.com - A free, open proxy for your API. >> >> >> > >> > -- >> >> >> -- >> Apiaxle http://apiaxle.com - A free, open proxy for your API. >> > > -- -- Apiaxle http://apiaxle.com - A free, open proxy for your API. -- -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups "nodejs" group. To post to this group, send email to nodejs@googlegroups.com To unsubscribe from this group, send email to nodejs+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en --- You received this message because you are subscribed to the Google Groups "nodejs" group. To unsubscribe from this group and stop receiving emails from it, send an email to nodejs+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.