When I start Grunt, I get the following message: Local npm module "grunt-contrib-copy" not found. Is it installed?

I am trying to install Grunt. When I run grunt, I get the following list of messages and warnings:

Local Npm module "grunt-contrib-copy" not found.  Is it installed?
Local Npm module "grunt-contrib-uglify" not found.  Is it installed?
Local Npm module "grunt-contrib-jshint" not found.  Is it installed?
Local Npm module "grunt-contrib-less" not found.  Is it installed?
Local Npm module "grunt-contrib-clean" not found.  Is it installed?
Local Npm module "grunt-contrib-watch" not found.  Is it installed?
Local Npm module "grunt-contrib-concurrent" not found.  Is it installed?
Local Npm module "grunt-contrib-nodemon" not found.  Is it installed?
Local Npm module "grunt-contrib-newer" not found.  Is it installed?
Warning: Task "copy:vendor" not found. Use --force to continue.
Aborted due to warnings.

I tried "npm install", "npm install grunt --save-dev", "grunt init: node". solve the problem of; it did not work. Can anyone help? Thank.

+5
source share
3 answers

It seems that you did not load the modules in Gruntfile.js, or you did not install all the modules. Try npm install <module-name> --save-devfor all modules.

+9
source

grunt package.json Gruntfile.js. package.json Gruntfile . .

:

enter image description here

package.json Gruntfile :

enter image description here

0

In my case, node_moduleslocated in the parent directory gruntFile.js
Strange, may be useful

0
source

Source: https://habr.com/ru/post/1598636/


All Articles