and then try again (if that doesn't already solve it, which for me it didn't) do this:
sudo chmod ugo+rw /dev/ttyACM0
and then try again, note that if that solves it for you, you'll have to run this everytime you reconnect the board (so it should only be used as a temporary solution)
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
As suggested here: http://www.espruino.com/Quick+Start for linux run:
sudo adduser _YOUR_USERNAME_HERE dialout
and then try again (if that doesn't already solve it, which for me it didn't) do this:
sudo chmod ugo+rw /dev/ttyACM0
and then try again, note that if that solves it for you, you'll have to run this everytime you reconnect the board (so it should only be used as a temporary solution)