Yaaaaaaay. Ubuntu will now make `pip install whatever` as a user do something sensible, rather than just explode because it can't write to a root-owned directory (which is terrible because everyone then turns around and writes `sudo pip install whatever`, which overwrites a bunch of your system libraries.) Fantastic. Out-of-the-box usability for developers, step 1. Nice work +Didier Roche. Looking at the bug at https://bugs.launchpad.net/ubuntu/+source/python-pip/+bug/1419695 there are still some issues to be worked out with upstream `pip`, but hopefully they will get sorted out OK (and upstream pip probably think "fine, use pip to install stuff at system level, we don't mind", whereas Ubuntu say "don't do that, you'll break things"). Winner. #ubuntulovesdevelopers
View 6 previous comments
+Didier Roche ah. npm installs in the current folder by default. Try "npm -g install whatever", which installs "globally". I think that will fail because it'll try and write to a global location, as pip does, and that's what we want to work (or at least not throw an error by default, but explain to people what to do).Feb 12, 2015
+Stuart Langridge I think the behavior is sane, if the user wants to install something globally, let him doing that. Of course, we could have a better error than "npm ERR! stack Error: EACCES, mkdir '/usr/local/lib/node_modules/json'" not really developer friendly, but the priority one works: without special flags, the thing does the right thing IMHO: it doesn't try to mess with your global/package installation, isn't it?Feb 12, 2015
+Didier Roche it is entirely possible (and indeed recommended) to install global npm packages in a user-owned folder (I do it, for example) without sudo. (A "global" package for npm means "available to more than one project", not "available to every user on the system".) To do that, you just need to define a couple of variables in the default bash setup; see https://github.com/sindresorhus/guides/blob/master/npm-global-without-sudo.md. I think we could do that without problems; then global installs would work out of the box as well.Feb 12, 2015
So this sort of change is actually driving the upstream pip developers nuts :/. +Donald StufftFeb 13, 2015
+Robert Collins ya, hence the discussion in the bug. I hope it gets resolved nicely.Feb 13, 2015
Gnar yes I hadn't read the bug, I knew from the other side already :)Feb 13, 2015
Add a comment...