javascript - Grunt "Gruntfile.js"任务...错误

标签 javascript node.js amazon-ec2 gruntjs npm

    pm WARN EPACKAGEJSON <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="a8d8c9dadcc6cddad8c7dadcc9c4e89886988698" rel="noreferrer noopener nofollow">[email protected]</a> No description
    npm WARN EPACKAGEJSON <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="15657467617b7067657a6761747955253b253b25" rel="noreferrer noopener nofollow">[email protected]</a> No license field.
    >> Local Npm module "grunt-autoprefixer" not found. Is it installed?
    >> Local Npm module "grunt-concurrent" not found. Is it installed?
    >> Local Npm module "grunt-contrib-concat" not found. Is it installed?
    >> Local Npm module "grunt-contrib-connect" not found. Is it installed?
    >> Local Npm module "grunt-contrib-htmlmin" not found. Is it installed?
    >> Local Npm module "grunt-contrib-jshint" not found. Is it installed?
    >> Local Npm module "grunt-contrib-uglify" not found. Is it installed?
    >> Local Npm module "grunt-contrib-watch" not found. Is it installed?
    >> Local Npm module "grunt-filerev" not found. Is it installed?
    >> Local Npm module "grunt-google-cdn" not found. Is it installed?
    >> Local Npm module "grunt-karma" not found. Is it installed?
    >> Local Npm module "grunt-newer" not found. Is it installed?
    >> Local Npm module "grunt-ng-annotate" not found. Is it installed?
    >> Local Npm module "grunt-svgmin" not found. Is it installed?
    >> Local Npm module "grunt-usemin" not found. Is it installed?
    >> Local Npm module "grunt-wiredep" not found. Is it installed?
    Loading "Gruntfile.js" tasks...ERROR
    >> Error: Cannot find module 'time-grunt'

NPMgrunt 新手。不确定到底发生了什么?有什么想法如何调试吗?安装了NPMBOWER

最佳答案

我认为,在运行 grunt 之前,您没有运行 npm install 来安装项目的所有软件包。在正常情况下,构建一个 Grunt App。我们应该按以下步骤运行:

安装 NPM 软件包。

cd to_root_project_path

npm install

安装 Bower 软件包

bower install

最后,运行 grunttast

关于javascript - Grunt "Gruntfile.js"任务...错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33969384/

相关文章:

javascript - 使用 CSS/Javascript 将动态文本包裹在旋转圆柱体周围 (splitting.js)

javascript - 使用 jquery 根据用户定义的变量在 select 中选择一个选项

javascript - 查询选择器 ":before"

javascript - POST 推送器/auth 404(未找到)

node.js - 使用 Exchange EWS SOAP,如何获取给定用户名的电子邮件地址

amazon-web-services - ansible/ubuntu : updating cache fails after adding repos on AWS instance

mysql - 无法登录到 AWS ec2 上托管的 MySQL 实例

amazon-ec2 - 已收到来自 [i-2a7fe91f] 的 AWS 响应,但命令失败

javascript - 如何 ping 嵌入 Discord.js 中的角色

javascript - 在 nodejs 中遇到 promise 问题