I am having problems when creating a new compass project (Windows 7). I get this:
C:\>compass create a
create config.rb
Errno::EACCES on line ["891"] of C: Permission denied - (C:/a/config.rb20140321-6828-1g0ytlc, C:/a/config.rb)
Run with --trace to see the full backtrace
I have tried to start cmd with "Run as administrator", I have tried to delete compass, sass and ruby, and reinstalled without any luck. Anyone else having problems or know a solution to this irritating problem?
I was using the latest version (21.03.2014) of compass v.0.12.4...
Downgraded to v.0.12.2 everything worked fine!
Looks like a bug?
To downgrade:
$ gem uninstall compass
$ gem uninstall sass
$ gem install compass -v 0.12.2
$ gem install sass -v <rev>
Please update to Sass 3.2.18 and let me know if that fixes it.
Is this linked to
Compass/Sass writing files with "No Access" permissions for Everyone group on OSX?
If so, updating to 3.2.18 hasn't made a difference.
This has been resolved in Compass version 0.12.5
https://github.com/chriseppstein/compass/issues/1618
Related
/Users/me/.rbenv/versions/2.5.1/lib/ruby/2.5.0/rubygems.rb:289:in ``find_spec_for_exe': can't find gem rubocop (>= 0.a) with executable rubocop (Gem::GemNotFoundException) from /Users/me/.rbenv/versions/2.5.1/lib/ruby/2.5.0/rubygems.rb:308:in ``activate_bin_path' from /Users/me/.rbenv/versions/2.5.1/bin/rubocop:23:in'
This is the error I keep getting whenever I type something. Does anyone know how to fix this problem?
After many agonising hours and reading other solutions I finally deduce that the answer was in installing Rubocop from the root. Below steps worked when I tried.
You first need to go the root in your terminal.
Install Rubocop then find the path and add it to the execute path in Rubocop settings
$ cd ~
$ gem install rubocop
$ which rubocop
Paste location given in Ruby-Rubocop configuration settings > Execute Path
/Users/username/.rvm/gems/ruby-2.6.1/bin/
I can propose you 2 solutions because I had experienced the same problem:
For me installing the bundler with sudo -> sudo gem install bundler fix the issue.
Also it can be a mistake coming from you RubyGems version. It seems like ruby -v2.5 has a compatible problem with RubyGems -v2.7.3. So try upgrading the RubyGems to -v2.7.4 using the gem update --system command.
For anyone who downloaded Ruby26-x64 and is having the same issue. It is probably because of the install locations and that your C://Users//you//whatever doesn't exist. To fix this I simply checked where ruby was installed on my C drive. For me, it downloaded by default into a file called Ruby26-x64 on my C drive. Open the folder go to bin and double check that there is a rubocop.bat somewhere. Copy paste the path, into settings.json. Should look something like this.
"ruby.rubocop.executePath": "C:\\Ruby26-x64\\bin\\",
Note that this is a solution I found on Windows 10, I don't know about Mac.
EDIT:
Settings.json can be found by going to File>Preferences>Settings>Workbench
and under "Editor Associations", you will see a button that says Edit in settings.json, there are many ways to open your settings.json file, this is just one.
After installing rubocop gem gem install rubocop
Run bundle install and then run rubcop again. It functioned for me.
I'm not well versed in terminal, but I'll try my best to make this as clear and concise as I can.
I'm trying to install SASS and get the following errors:
When using gem install sass I get .
ERROR: While executing gem ... (Gem::FilePermissionError)
You don't have write permissions for the /Library/Ruby/Gems/2.3.0 directory.
When using sudo gem install sass I get .
ERROR: While executing gem ... (Gem::FilePermissionError)
You don't have write permissions for the /usr/bin directory.
I have Xcode installed and I have agreed to the terms.
I even tried updating my Ruby, but terminal tells me I already have the most updated version.
ruby 2.3.3p222 (2016-11-21 revision 56859) [universal.x86_64-darwin17]
The worst part of all of this is that when I navigate to my Ruby/Gems/2.3.0/gems directory, there is a sass-3.5.5 folder!!! (linked image to follow)
Ruby directory path to sass folder
I try running sass -v and get -bash: sass: command not found
I feel like I've tried everything that I can think of or find online. I'm at a loss and definitely need some help.
The issue can be fixed by installing RVM or Rbenv for managing ruby versions and gems.
Also, FilePermissionError can be fixed using the -n parameter
sudo gem install sass -n /usr/bin
I prefer not touching sudo command, so I managed to solve this issue by referring to SASS home page:
If you use Node.js, you can also install Sass using npm by running
npm install -g sass
If you find it helpful, kindly upvote or leave comment so that I know it can solve your issues too.
Or one could update the directory for where gems are installed.
Please see the origional answer here: https://stackoverflow.com/a/2619731/3302764
export GEM_HOME=~/.gem
export GEM_PATH=~/.gem
I've got some issues with SASS. After updating the .scss file, the .css file won't update.
Lets say that this is my folder structure:
-scss
-style.scss
-css
-style.css
index.html
And I'm using this command from project root in cmd:
sass --watch scss/style.scss:css/style.css --style compressed
It compiles it the first time, but when I make some changes in the .scss file, it doesn't update.
I'm using:
win 8.1 64bit
ruby 2.0.0p481 64bit
Sass 3.4.2
How to make it watch for updates? Or am I doing something wrong?
Thanks
Update: Tested the same thing on ubuntu 14.04 and it works just fine (however, on ubuntu I've installed the latest version of ruby - ruby 2.1.2p95 )
Update 2: Issue on GitHub
This was a bug in Sass 3.4.2: https://github.com/sass/sass/issues/1409
It was fixed in Sass 3.4.3: http://sass-lang.com/documentation/file.SASS_CHANGELOG.html#343_4_september_2014
If you're using Bundler, make sure your Sass version is not restricted to 3.4.2 in your Gemfile. Recommended line is gem 'sass', '~> 3.4.3'. The run bundle update within your project root.
If you're not using Bundler, simply run gem update sass.
I also came across this issue. I downgraded Sass to version 3.3.14 and it worked for me again. No idea why.
Using:
win 8.1 64bit
ruby 2.0.0p481 64bit
I had same problem and upon solution didn't helped. Looks like ruby on windows 8 has WDM (Windows Directory Monitor) problem and --watch command is not working properly.
I solved problem in this way:
Downloaded and installed Installed Ruby 1.9.3p550 - Download link
Downloaded and installed Development Kit (which is required to install WDM) for Ruby 1.9.3 -
DevKit-tdm-32-4.5.2-20110712-1620-sfx.exe
Extract DevKit to path C:\Ruby193\DevKit
Run cd C:\Ruby193\DevKit
Run ruby dk.rb init
Run ruby dk.rb review
Run ruby dk.rb install
Then run gem install wdm
And after that, --watch command is working properly.
Hope this way will help someone.
I upgraded my hardware yesterday and fresh installed Win 8.1. This error is killing me since then. I already lost full day of work trying to figure out what's going on. I never encountered this on my Mac or in my old Win 7 machine.
Setting up a new project with yo webapp using Bootstrap and Modernizr works great. Server would fire-up and I can see my updates livereload. But, setting up a new project with Compass and SASS included would prevent me from starting local server and throw this error:
D:\test>grunt serve
Running "serve" task
Running "clean:server" (clean) task
Running "concurrent:server" (concurrent) task
Running "copy:styles" (copy) task
Done, without errors.
Warning: Errno::EACCES on line ["897"] of C: Permission denied - (D:/test/.t
mp/styles/main.css20140323-6060-d9r9eo, D:/test/.tmp/styles/main.css)
Run with --trace to see the full backtrace Use --force to continue.
Aborted due to warnings.
Execution Time (2014-03-23 20:05:00 UTC)
concurrent:server 4.8s ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ 100%
Total 4.8s
D:\test>
I updated Compass and SASS to latest version, reinstalled Yeoman & Ruby, and tried bunch of other small tweaks. Nothing worked.
Any ideas what else I could try?
I have found solution for this issue. I guess this might help with other similar problems running grunt server. This is what did it for me:
Uninstall SASS
gem uninstall sass
Uninstall COMPASS
gem uninstall compass
Install --pre COMPASS version
gem install compass --pre
Install --pre SASS version
gem install sass --pre
For some reason only running task in this order worked for me. I hope this helps.
Issue is solved in SASS 3.2.19
Try gem update compass
I have installed Ruby on my system, and now I want to install Compass. But when I execute the gem install compass command, it shows an error like this:
could not find valid gem 'compass' <>=0> in any repositary
And also:
SocketError: getadressinfo: no such host is known.<http://rubygems.org/latest_specs.4.8.gz>
I don't know what the problem is. If I run ruby -v, it shows the Ruby version. So what's the problem with installing Compass?
Can anyone explain this to me properly? I've searched Google, but all I could find was some proxy problem - and I couldn't understand how to set the proxy at all.
I'm using Windows and a company internet connection, so I don't know the username and password of my proxy.
I was behind a proxy and HumberFrench's solution above helped:
Go to Ruby bin folder:
cd c:/Ruby193/bin
And then install compass gem:
gem install compass --http-proxy http://<proxy_adreess>:<port_of_proxy>
Another tip: am on Aptana Studio, so this could be run from within Aptana's terminal.
Cant up-vote so adding this here.
I had the same problem, finally solved it manually.
Goto the rubygems compass page, and download the gem by clicking the Download link. Scroll down and you will see three Runtime Dependencies. Goto each of them and download those gems also. Put all of them in a directory, and try
gem install downloaded_compass_filename
This should solve your problem.
If it gives an repository not found error message, you can force gem to try local files through the gem --local install option
if you use a proxy, and get error, do it
gem install compass --http-proxy http://<proxy_adreess>:<port_of_proxy>
gem install -h gives you a lor of options
The proxy is the most likely cause. You will have to get permission from the network admin, or manually download compass. For more info, See this SA post.
If you decide to go the manual route here is a link to the RubyGems compass page. This not ideal, but also better than having to write css without compass magic ^^
Good luck!
On windows i had a few instalations of ruby:
C:\ruby187
and
C:\Ruby200-x64
install compass in both places, using:
gem install compass
Try running the install command in the bin folder.
$ cd C:\Your_Ruby_Folder\bin
$ gem install compass
I have same problem and i resolve it with.
Uninstall ruby end deleted folder ruby
Download ruby version 1.9.x
After thet install sass
last stem: install compass