Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript Express Basics (2015) Using Templates with Express Scaffolding Your Project’s Templates

Sublime error "Unable to save ~Projects/treehouse-express-basics/express-basics/src/templates/layout.jade

Not sure why it does not allow me to save this file. Any thoughts are appreciated.

Gunhoo Yoon
Gunhoo Yoon
5,027 Points

Does it only say that and not anything else?

yep, that's all it says.

Imgur

Gunhoo Yoon
Gunhoo Yoon
5,027 Points

I suspect file permission problem.

Have you tried these?

  1. If you are in group staff try something like sudo chmod g+w

  2. If you don't belong to any then try something like sudo chmod 0+w

If you don't know these they give you permission to write something in directory.

There are other options like chown, su etc... but try above first.

Done. it was the permission for the group that had to be set to write. thanks.

– It is interesting that the ownership of these files has been inherently when I cloned the repo and some of them are arbitrarily set to root and others to user. I wonder how the standards and guidelines on these were decided. I think in src everything by standard is set to root.