I’ve been using commandbox for about a month and a half or so but had only been using mostly the coldbox namespace and hadn’t tried out some of the other cool commands.
After watching Brad’s awesome meetup yesterday I was playing around with some of the features he showed off and was getting all kinds of errors.
One of the things I tried first was using the REPL command. It would drop me into the scripting shell, but any command I typed would come back blank. I also tried installing the Chuck Norris package and while it would install ok, any time I tried running the “norris” command it would tell me it didn’t have a command called norris. There were other errors too when trying to run commands like “package show norris”. It would tell me it couldn’t find a function name getcwd() I believe it was.
I decided to try “sudo box” rather than just “box” and then tried installing the chuck norris package and everything worked great. the REPL command works too when I run box with sudo.
I’m just guessing, but it looks like without sudo, commandbox can’t write to certain folders which causes these errors.
I didn’t see it mentioned in the docs that you need to run it with sudo, so I’m not sure if that is a bug or if it was intended behavior. But I definitely could have missed it because I’ve only briefly glanced at the docs.
One other odd thing I noticed. If I run “box” without sudo the version number shows up as v1.0.0.00075 but if run it with sudo the version number is v1.0.0+00163
Just wanted to put this out there in case others have issues and also just to make Brad and Luis aware in the event that this was not the expected behavior.
Thanks again for bringing this tool to us. I’m looking forward to all the other great features it will offer.
Ben