首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >grunt-contrib compass在npm中不起作用

grunt-contrib compass在npm中不起作用
EN

Stack Overflow用户
提问于 2016-04-10 16:47:30
回答 1查看 2.3K关注 0票数 1

我安装了npm和grunt,然后安装了grunt-contrib-compass。但是当我跑起来的时候。我有这个错误

代码语言:javascript
复制
Running “compass:dist” (compass) task
Warning: not found: compass Use –force to continue.
Aborted due to warnings

这是我的gruntfile.js

代码语言:javascript
复制
module.exports = function(grunt) {
grunt.initConfig({
    pkg: grunt.file.readJSON('package.json'),
    compass: {
        dist: {
            options: {
                sassDir: 'sass',
                cssDir: 'css'
            }
        }
    },
    watch: {
        css: {
            files: '**/*.scss',
            tasks: ['compass']
        }
    }
});
grunt.loadNpmTasks('grunt-contrib-compass');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.registerTask('default',['watch']);
}
EN

回答 1

Stack Overflow用户

发布于 2016-11-03 00:59:48

您需要按照详细的here安装Compass Ruby gem。基本上,您需要安装Ruby,然后使用Ruby安装Compass gem,grunt-contrib-compass应该可以工作

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/36527712

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档