我一直在尝试安装Grunt。当我运行grunt时,我收到以下消息和警告列表:
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.我尝试过"npm install","npm install grunt --save-dev","grunt init:node“。来解决这个问题;它不起作用。有人能帮上忙吗?谢谢。
发布于 2015-07-20 10:56:37
您似乎没有加载Gruntfile.js中的模块,或者您没有安装所有的模块。尝试对所有模块使用npm install <module-name> --save-dev。
发布于 2018-10-24 18:19:54
运行grunt需要一个package.json和Gruntfile.js文件。将文件package.json和Gruntfile保存在项目的根目录下。在那之后,它会起作用的。
错误:

将文件package.json和Gruntfile保存到根目录后:

发布于 2019-01-08 22:11:51
在我的例子中,node_modules位于gruntFile.js的父目录中
奇怪的一个,可能会有帮助
https://stackoverflow.com/questions/31508137
复制相似问题