我一直在尝试安装 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”。解决问题;它没有用。谁能帮忙?谢谢。
最佳答案
您似乎没有加载 Gruntfile.js 中的模块,或者您没有安装所有模块。尝试 npm install <module-name> --save-dev
对于所有模块。
关于node.js - 当我运行 Grunt 时,我收到以下消息 : Local npm module "grunt-contrib-copy" not found. Is it is installed?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31508137/