Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
petetnt opened this issue Jun 24, 2015 · 1 comment
Open

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

petetnt opened this issue Jun 24, 2015 · 1 comment

Comments

@petetnt
Copy link

petetnt commented Jun 24, 2015

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?

@dongshaohan
Copy link

I had solved this problem.

grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-express');

the watch plugin must be ahead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants