简体   繁体   English

指南针错误的命令'grunt服务器'

[英]Compass error for command 'grunt server'

I'm running a project for which I installed nodeJs, ruby, yeoman, compass, etc. Now Im running my project with command >grunt server or >grunt server --force 我正在运行一个为其安装了nodeJs,ruby,yeoman,指南针等的项目。现在,我使用命令>grunt server>grunt server --force运行我的项目

but it is giving me following error for 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. 我尝试卸载和安装指南针和sass。 but still the same error for 'compass:server' 但对于'compass:server'仍然是相同的错误

What do i need to do? 我需要做什么?

this is the details error I got: 这是我得到的详细信息错误:

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

This is an issue with Compass 0.12.4. 这是Compass 0.12.4的问题。

Follow the issue here: https://github.com/chriseppstein/compass/issues/1618 在此处关注问题: https : //github.com/chriseppstein/compass/issues/1618

You need to uninstall compass 0.12.4: gem uninstall compass , and then install the latest working release: gem install compass -v 0.12.3 . 您需要卸载罗盘0.12.4: gem uninstall compass ,然后安装最新的工作版本: gem install compass -v 0.12.3

I'm not working on windows, but best guess it seems like ruby doesn't have write permission to your target directory E:/CRM_workspace/CRM_from_repo/ria/.tmp/styles/main.css , so check for that. 我不在Windows上工作,但最好猜测一下,Ruby似乎没有对目标目录E:/CRM_workspace/CRM_from_repo/ria/.tmp/styles/main.css写权限,因此请进行检查。 I don't know about permission control under windows, maybe you should give ruby administrator rights or let E: for everyone writable. 我不知道Windows下的权限控制,也许您应该授予ruby管理员权限,或者让E:对于每个人都可写。

UPDATE: As far as I know, this problem is related with sass's version, so try to update your compass to v3.2.18 at least. 更新:据我所知,此问题与sass的版本有关,因此请尝试至少将指南针更新到v3.2.18

You check the current version with command: gem list sass , and update with command: gem update sass , good luck and keep me posted. 您可以使用以下命令检查当前版本: gem list sass ,并使用以下命令gem update sassgem update sass ,祝您好运并gem update sass我。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM