Compass error for 'grunt server' command

I am running a project for which I installed nodeJs, ruby, yoman, compass, etc. Now Im starts my project with the command >grunt server or >grunt server --force

but this gives me the following error for the compass.

 E:\CRM_workspace\CRM_from_repo\ria>grunt server --force Running "server" task >> The `server` task has been deprecated. Use `grunt serve` to start a server. Running "serve" task Running "clean:server" (clean) task Cleaning .tmp...OK Running "concurrent:server" (concurrent) task Running "copy:styles" (copy) task Done, without errors. Running "compass:server" (compass) task directory .tmp/styles/ create .tmp/styles/main.css (3.069s) Warning: โ†‘ Used --force, continuing. Done, but with warnings. Running "autoprefixer:dist" (autoprefixer) task Running "connect:livereload" (connect) task Started connect web server on 127.0.0.1:9000. Running "watch" task Waiting... 

I tried uninstalling and installing compass and sass. but still the same error for 'compass:server'

What should I do?

this is the details error I received:

 E:\CRM_workspace\CRM_from_repo\ria>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 ["891"] of C: Permission denied - (E:/CRM_wor kspace/CRM_from_repo/ria/.tmp/styles/main.css20140321-4456-1klow8l, E:/CRM_works pace/CRM_from_repo/ria/.tmp/styles/main.css) Run with --trace to see the full backtrace Use --force to continue. Aborted due to warnings. Execution Time (2014-03-21 11:21:08 UTC) concurrent:server 6.3s โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– โ–  100% Total 6.3s 
+1
ruby gruntjs compass-sass yeoman
Mar 21 '14 at 8:58
source share
2 answers

This is a problem with Compass 0.12.4.

Follow this issue: https://github.com/chriseppstein/compass/issues/1618

You need to remove the compass 0.12.4: gem uninstall compass , and then install the latest working version: gem install compass -v 0.12.3 .

+4
Mar 24 '14 at 14:12
source share

I do not work on windows, but I think Ruby does not have write permissions to your target directory E:/CRM_workspace/CRM_from_repo/ria/.tmp/styles/main.css , so check this out. I do not know about permission under the windows, perhaps you should grant ruby โ€‹โ€‹administrator rights or let E: for all writable.

UPDATE: As far as I know, this problem is related to the sass version, so try updating the compass to v3.2.18 at least.

You check the current version with the command: gem list sass and update the command: gem update sass , good luck and keep me posted.

+1
Mar 22 '14 at 15:39
source share



All Articles