When I run Grunt, I receive the following message: Local npm module “grunt-contrib-copy” not found. Is it installed?

依然范特西╮ 提交于 2019-12-05 07:55:30

It seems that you don't have loaded the modules in the Gruntfile.js or you haven't installed all the modules. Try npm install <module-name> --save-dev for all the modules.

Running grunt need a package.json and Gruntfile.js files. Keep the file package.json and Gruntfile in the root directory of the project. After that, It will work.

Error:

After Keep the file package.json and Gruntfile in the root directory:

In my case, node_modules was in parent directory of gruntFile.js
Odd one, might be helpful

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!