命令“grunt server”的罗盘错误

我正在运行一个项目,我安装了nodeJs,ruby,yeoman,compass等。现在我正在用命令>grunt server>grunt server --force运行我的项目

但它给我指南针的错误。

 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... 

我试着卸载并安装指南针和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

您需要卸载指南针0.12.4: gem uninstall compass ,然后安装最新的工作版本: gem install compass -v 0.12.3

我不是在Windows上工作,但最好猜测,似乎ruby没有写目标目录的权限E:/CRM_workspace/CRM_from_repo/ria/.tmp/styles/main.css ,所以检查。 我不知道windows下的权限控制,也许你应该给rubypipe理员权限,或者让E:对每个人都是可写的。

更新:据我所知,这个问题是与sass的版本有关,所以尝试至less更新你的指南针到v3.2.18

你用命令: gem list sass检查当前的版本,并用命令gem update sassgem update sass ,祝你好运,并保持我张贴。