Skip to content

Error: Grunt attempted to load a .coffee file but CoffeeScript was not installed. #1725

Closed
@derrickb

Description

@derrickb

I've just come back to my project on a fresh Windows install after some months away from it. I've been using grunt with a Gruntfile.js for years without this issue.

I installed grunt-cli 1.4.0 and get this error when attempting to run grunt in my project:

Loading "main.coffee" tasks...ERROR
    >> Error: Grunt attempted to load a .coffee file but CoffeeScript was not installed.
    >> Please run `npm install --dev coffeescript` to enable loading CoffeeScript.

I'm not using any CoffeeScript files, and do not want to add it as a dependency just to clear this error. I get the error for almost every task in my grunt file.

I tried running npm i -f as I saw that referenced elsewhere from a google search. I also updated local grunt to 1.3.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions