我正在运行一个项目,我为其安装了 nodeJs、ruby、yeoman、compass 等。现在我正在使用命令运行我的项目
>grunt server
或 >grunt server --force
但它给了我 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...
我尝试卸载和安装 compass 和 sass。但对于 'compass:server'
我需要做什么?
这是我得到的详细信息错误:
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
最佳答案
这是 Compass 0.12.4 的问题。
关注这里的问题:https://github.com/chriseppstein/compass/issues/1618
您需要卸载 compass 0.12.4:gem uninstall compass
,然后安装最新的工作版本:gem install compass -v 0.12.3
。
关于ruby - 命令 'grunt server' 的 compass 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22554220/