As I asked and answered here , I found that running ' sudo lein deps causes some problem that forces me to run ' sudo lein swank', which is annoying. And I was told not to use sudo . I use Mac OS X 10.6.4.
So, I'll try to uninstall and reinstall leiningen.
I followed the steps explained here .
download leiningen using ' http://github.com/technomancy/leiningen.git ' to ~/bin/leinigen
yes removing .m2 and then lein self-install
should fix this :)
when you can sudo lein ... it created files in .m2 owned by root so removing these and then recreating them as the proper user (you) should fix it. you could perhaps also just change the user on them back to yourself.
chown username:users ~/.m2/*
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.