Uppi
Uppi

Reputation: 722

Grunt "Gruntfile.js" tasks...ERROR

    pm WARN EPACKAGEJSON [email protected] No description
    npm WARN EPACKAGEJSON [email protected] No license field.
    >> Local Npm module "grunt-autoprefixer" not found. Is it installed?
    >> Local Npm module "grunt-concurrent" not found. Is it installed?
    >> Local Npm module "grunt-contrib-concat" not found. Is it installed?
    >> Local Npm module "grunt-contrib-connect" not found. Is it installed?
    >> Local Npm module "grunt-contrib-htmlmin" not found. Is it installed?
    >> Local Npm module "grunt-contrib-jshint" not found. Is it installed?
    >> Local Npm module "grunt-contrib-uglify" not found. Is it installed?
    >> Local Npm module "grunt-contrib-watch" not found. Is it installed?
    >> Local Npm module "grunt-filerev" not found. Is it installed?
    >> Local Npm module "grunt-google-cdn" not found. Is it installed?
    >> Local Npm module "grunt-karma" not found. Is it installed?
    >> Local Npm module "grunt-newer" not found. Is it installed?
    >> Local Npm module "grunt-ng-annotate" not found. Is it installed?
    >> Local Npm module "grunt-svgmin" not found. Is it installed?
    >> Local Npm module "grunt-usemin" not found. Is it installed?
    >> Local Npm module "grunt-wiredep" not found. Is it installed?
    Loading "Gruntfile.js" tasks...ERROR
    >> Error: Cannot find module 'time-grunt'

New to NPM and grunt. Not sure exactly whats going on? Any ideas how to debug? installed NPM and BOWER

Upvotes: 2

Views: 4319

Answers (2)

Bezaleel
Bezaleel

Reputation: 304

Also sometimes sudo with npm install grunt fixes the issue too

sudo npm install grunt

Upvotes: -1

Nguyen Sy Thanh Son
Nguyen Sy Thanh Son

Reputation: 5376

I think that, you was not run npm install to install all packages for your project before running grunt. In the normal case, to build a Grunt App. We should run by the steps below:

Install NPM packages.

cd to_root_project_path

npm install

Install Bower packages

bower install

Finally, run grunt tast

Upvotes: 5

Related Questions