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 trialDon Howard
5,827 PointsNo such file found
Just setup Sass and am on the first stage of the Sass training. Created and saved the file according to instructions, tested to make sure there were no problems with the file. Started of by creating lessons directory for this course and saved the file there, and then saved one on the desktop according to the visuals in the video. This is the message that keeps coming back:
Errno::ENOENT: No such file or directory - test.scss Use --trace for backtrace.
This is confirmation that Sass is correctly installed:
bash-3.2# gem install sass Fetching: sass-3.4.5.gem (100%) Successfully installed sass-3.4.5 Parsing documentation for sass-3.4.5 Installing ri documentation for sass-3.4.5 1 gem installed bash-3.2# sass --version Sass 3.4.5 (Selective Steve)
Any ideas?
Thanks, Don
6 Answers
Sean T. Unwin
28,690 PointsIn your terminal type:
cd ~/Desktop/treehouse_projects/treehouse_sass
Then type ls
This should list your project files and you should see a directory named sass
If that is what you see then you are in the right place. To check even further you can type (while still the treehouse_sass
directory):
ls sass
It should list test.scss
.
To familiarize yourself better with the console or terminal (same thing, different name) check out the Console Foundations course.
Happy coding! :-)
Sean T. Unwin
28,690 PointsYou need to be in the directory of your project. i.e. where test.scss is located. You may have that file in a sub-directory such as /scss/test.scss
.
Say you have a structure like:
myproject/
|- scss/
|- test.scss
|- css/
|- test.css
index.html
When in your project's directory you can do this for example:
sass --watch scss/test.scss:css/test.css
That will watch for any changes made to scss/test.scss
and transpose it to a CSS file named test.css
inside the directory of css/
.
Don Howard
5,827 PointsThanks for responding Sean.
Terminal and command line entry is not something I have much experience with. This is one reason I have not spent much time with it. There is nothing in the instruction explaining where the file should be located, how to find it, or in what directory Sass has been installed.
The test.scss file is located in a folder on my desktop (Mac) as follows: treehouse_projects/treehouse_sass/sass/test.scss
There are a number of ways I have seen a complete path to a folder on the desktop displayed, and I do not know what path, or how it should be displayed in Terminal. Can you give me the exact path that should be entered in Terminal for that?
Thanks, Don
In the lesson Hampton simply has is listed as: Desktop$ sass test.scss
Don Howard
5,827 PointsThat is not getting me there either. This is the message:
bash-3.2# cd -/Desktop/treehouse_projects/treehouse_sass bash: cd: -/: invalid option cd: usage: cd [-L|-P] [dir]
Sean T. Unwin
28,690 PointsIt's a tilde not a hypen. i.e. the key to the left of the '1' on the top row of your keyboard. Oh and you have to use:
Shift + `
which is the ~
character.
As in hold down the Shift
key and press the tilde key.
Don Howard
5,827 PointsThanks Sean! I am getting bleary eyed...
ls sass gives me a message of No such file or directory, but I am able to work with the commands in the video and get responses that match what I should be getting.
Thanks Again! Don
Don Howard
5,827 PointsI do know what a tilde is, and how to access it, but thank you for making sure... : )
Sean T. Unwin
28,690 Points;-)
Have a good night.