【发布时间】:2015-10-09 01:58:27
【问题描述】:
我一直在尝试安装 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”。解决问题;它没有用。任何人都可以帮忙吗?谢谢。
【问题讨论】:
-
有 package.json 文件吗?是否有 node_modules 文件夹?
-
你能展示你的 Gruntfile.js 和 package.json 吗?
标签: node.js npm grunt-contrib-watch grunt-contrib-uglify grunt-contrib-copy