node.js - 当我运行 Grunt 时,我收到以下消息 : Local npm module "grunt-contrib-copy" not found. Is it is installed?

标签 node.js npm grunt-contrib-watch grunt-contrib-uglify grunt-contrib-copy

我一直在尝试安装 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/

相关文章:

node.js - Azure函数: NodeJS - HTTP Response Renders as XML Rather than HTTP Response

javascript - 异步读取文件

node.js - 有时 sails js session 不会破坏

javascript - 有没有更好的方法来构建我的 NPM 脚本以使其更具可读性?

javascript - 动态 Grunt Watch 配置

javascript - ESLint 正在读取其他配置

javascript - MongoDB map-reduce(通过nodejs): How to include complex modules (with dependencies) in scopeObj?

javascript - 如何使用 TypeScript 在浏览器中使用 NPM 包?

javascript - Grunt 配置监视和 karma :unit in single task

css - 需要使用 gruntjs compass 从 Windows 8.1 上的 scss 文件生成 css