Skip to content

Local Npm module "grunt-contrib-watch" not found-error #76

Description

@petetnt

When user has already installed grunt-contrib-watch via npm before installing grunt-express, npm won't install it under grunt-express/node_modules (npm/npm#1341) which leads to the following:

> grunt express
>> Local Npm module "grunt-contrib-watch" not found. Is it installed?

However, other than the error, everything seems to work as normal.

Steps to repro:

Gruntfile:

module.exports = function (grunt) {
    grunt.initConfig({
        express: {
            test: {}
        }
    });
    grunt.loadNpmTasks("grunt-express");    
}
> npm install grunt-contrib-watch
> npm install grunt-express
> grunt express
>> Local Npm module "grunt-contrib-watch" not found. Is it installed?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions