ylbtech-杂项-Grunt:grunt build 打包和常见错误
1. 安装、打包返回顶部
1、
npm WARN deprecated coffee-script@1.10.0: CoffeeScript on NPM has moved to "coff
eescript" (no hyphen)
C:\Users\Administrator\AppData\Roaming\npm\grunt -> C:\Users\Administrator\AppDa
ta\Roaming\npm\node_modules\grunt\bin\grunt
+ grunt@1.0.1
added 92 packages in 17.68s╭─────────────────────────────────────
╮│                                     ││   Update available 5.5.1 → 5.6.0    ││     Run npm i -g npm to update      ││                                     │╰─────────────────────────────────────
╯D:\work-JFB\JFBWeb\DS.JZB.Web>grunt build
Running "clean:dist" (clean) task
>> 0 paths cleaned.Running "exec:genGTmpl" (exec) task
? account/add :v3
? account/index :v3
? account/itemlist :v2
? activity/index :v4
? activity/itemlist :v1
? asset/asset/add :v14
? asset/asset/assetitem :v3
? asset/asset/drawcashitem :v3
? asset/asset/index :v25
? asset/bankcard/index :v15
? asset/wages/index :v23
? asset/wages/itemlist :v3
? course/add :v2
? course/addmod :v32
? course/edit :v8
? course/index :v29
? course/itemlist :v7
? course/other :v6
? course/otheritemlist :v2
? course/showqrcode :v18
? customer/customerdetail :v3
? customer/index :v3
? customer/itemlist :v2
? hk/certificate :v9
? hk/educationpics :v2
? hk/expitemlist :v2
? hk/hkdetail :v34
? hk/index :v6
? hk/insurance :v2
? hk/itemlist :v6
? hk/physical :v2
? hk/physicalpics :v2
? hk/studylist :v1
? hk/trainpics :v2
? loginacc/accchkdetail :v5
? loginacc/accchkeddetail :v5
? loginacc/accdetail :v5
? loginacc/addacc :v6
? loginacc/chk/itemlist :v3
? loginacc/edit :v3
? loginacc/index :v4
? loginacc/login/itemlist :v4
? loginacc/manage :v6
? loginstore/accchkdetail :v7
? loginstore/accdetail :v7
? loginstore/addacc :v6
? loginstore/chk/itemlist :v3
? loginstore/index :v7
? loginstore/login/itemlist :v5
? loginstore/manage :v6
? message/detail :v5
? message/index :v28
? message/itemlist :v5Running "exec:genMTmpl" (exec) task
? bankcard/list :v1
? contract/detail :v1
? contract/housekeeperdetail :v1
? contract/list :v1
? contract/managerdetail :v1
? housekeeping/detail :v1
? housekeeping/list :v1
? housekeeping/serviceinfo :v1
? manager/detail :v1
? manager/list :v1
? message/approval :v1
? message/interview :v1
? message/interviewd :v1
? message/leave :v1
? message/list :v1
? message/payroll :v1
? message/physical :v1
? message/preservice :v1
? message/prewage :v1
? message/servicecon :v1
? message/sysmsg :v1
? messages/approval :v1
? messages/contract :v1
? messages/hkcontract :v1
? messages/interview :v1
? messages/list :v1
? messages/physica :v1
? messages/servicecon :v1
? messages/sysmsg :v1
? overtime/list :v1
? public/att :v1
? study/buy :v1
? study/detail :v1
? study/detail2 :v1
? study/list :v1
? study/list2 :v1
? study/question :v1
? train/list :v1
? wage/detail :v1
? wage/list :v1
? wage/modify :v1
? worklog/cdetail :v1
? worklog/clist :v1
? worklog/config :v1
? worklog/detail :v1
? worklog/guide :v1
? worklog/list :v1Running "exec:genSTmpl" (exec) task
? account/index :v3
? account/stat :v2
? accountrecord/detail :v3
? accountrecord/payrollindex :v24
? accountrecord/payrollitem :v5
? accountrecord/serindex :v29
? accountrecord/seritemlist :v5
? accountrecord/serpayindex :v8
? accountrecord/serpayitem :v2
? asset/drawcashrecord/issued :v9
? asset/drawcashrecord/issuedialog :v1
? asset/drawcashrecord/itemlist :v5
? asset/drawcashrecord/unissued :v23
? base/accountnum/index :v18
? base/bankitem/add :v9
? base/bankitem/detail :v12
? base/bankitem/index :v8
? base/bankitem/itemlist :v2
? base/manageitem/add :v17
? base/manageitem/detail :v15
? base/manageitem/index :v12
? base/manageitem/itemlist :v4
? course/authority/certificate :v1
? course/authority/chosevideo :v1
? course/authority/educationpics :v1
? course/authority/expitemlist :v1
? course/authority/hkdetail :v2
? course/authority/index :v2
? course/authority/insurance :v1
? course/authority/itemlist :v2
? course/authority/physical :v1
? course/authority/physicalpics :v1
? course/authority/studylist :v1
? course/authority/trainpics :v1
? course/authority/videolist :v1
? course/courselist/add :v11
? course/courselist/detail :v14
? course/courselist/index :v12
? course/courselist/itemlist :v7
? course/coursemodule/add :v10
? course/coursemodule/index :v13
? course/coursemodule/itemlist :v5
? course/videolist/add :v12
? course/videolist/addoption :v2
? course/videolist/addsubject :v2
? course/videolist/detail :v15
? course/videolist/detailoption :v2
? course/videolist/detailsubject :v2
? course/videolist/editoption :v2
? course/videolist/editsubject :v2
? course/videolist/index :v9
? course/videolist/itemlist :v4
? insurance/chk :v2
? insurance/chkdetail :v2
? insurance/detail :v2
? insurance/index :v2
? loginacc/accchkdetail :v26
? loginacc/accdetail :v22
? loginacc/addacc :v28
? loginacc/chk/itemlist :v4
? loginacc/index :v51
? loginacc/login/itemlist :v15
? loginacc/manage :v47
? message/choose :v4
? message/chooseitem :v3
? message/detail :v1
? message/index :v16
? message/itemlist :v2
? message/sndmsg :v26
? message/sndtooltip :v5
? platformcourse/add :v2
? platformcourse/addmod :v2
? platformcourse/edit :v2
? platformcourse/index :v5
? platformcourse/itemlist :v3
? platformcourse/showqrcode :v4
? platforminfo/index :v16
? platforminfo/loginacc/add :v17
? platforminfo/loginacc/edit :v14
? platforminfo/loginacc/index :v13
? platforminfo/loginacc/itemlist :v4
? platforminfo/viewdetail :v1
? py :v1
? upload/item :v1Running "exec:genYTmpl" (exec) task
? contract/att :v1
? contract/create :v1
? contract/detail :v1
? contract/list :v1
? contract/update :v1
? customer/employ/list :v1
? customer/employ/view :v1
? customer/list :v1
? customer/selectlist :v1
? customer/view :v1
? homemaking/auditing/list :v1
? homemaking/auditing/view :v1
? homemaking/list :v1
? homemaking/selectlist :v1
? homemaking/view :v1
? homemaking/worklog/detail :v1
? homemaking/worklog/list :v1
? message/contract :v1
? message/customercon :v1
? message/customeritv :v1
? message/hkcontract :v1
? message/housekpcheck :v1
? message/leave :v1
? message/list :v1
? message/physical :v1
? message/servicecon :v1
? personalcenter/head :v1
? personalcenter/information :v1
? personalcenter/list :v1
? staf/addstafeight :v1
? staf/addstaffive :v1
? staf/addstaffour :v1
? staf/addstafone :v1
? staf/addstafseven :v1
? staf/addstafsix :v1
? staf/addstafthree :v1
? staf/addstaftwo :v1
? staf/line :v1
? staf/pic :v1
? staf/preview-img :v1
? study/detail :v1
? study/list :v1Running "copy:dist" (copy) task
Created 69 directories, copied 1688 filesRunning "copy:js" (copy) taskRunning "useminPrepare:html" (useminPrepare) task
Configuration changed for concat, uglify, cssminRunning "concat:generated" (concat) taskRunning "cssmin:generated" (cssmin) task
>> 7 files created. 1.13 MB → 1.03 MBRunning "uglify:generated" (uglify) task
>> 27 files created 3.5 MB → 2.59 MBRunning "filerev:js" (filerev) task
Revved 4 filesRunning "filerev:css" (filerev) task
Revved 1 fileRunning "usemin:html" (usemin) task
Replaced 180 references to assetsRunning "htmlmin:dist" (htmlmin) task
Minified 180 filesRunning "clean:tmp" (clean) task
>> 1 path cleaned.Running "copy:js" (copy) taskRunning "clean:build" (clean) task
>> 0 paths cleaned.Running "compress:main" (compress) task
>> Compressed 1841 files.Done.D:\work-JFB\JFBWeb\DS.JZB.Web>

2、相关截图
2.1、
2.2、
3、
2. npm install grunt -g返回顶部
1、
E:\jiafubao\DS.JZB.Web>grunt build
'grunt' 不是内部或外部命令,也不是可运行的程序
或批处理文件。E:\jiafubao\DS.JZB.Web>npm install grunt -g
C:\Users\Administrator\AppData\Roaming\npm\grunt -> C:\Users\Administrator\AppDa
ta\Roaming\npm\node_modules\grunt\bin\grunt
C:\Users\Administrator\AppData\Roaming\npm
`-- grunt@1.0.2+-- coffeescript@1.10.0+-- dateformat@1.0.12| +-- get-stdin@4.0.1| `-- meow@3.7.0|   +-- camelcase-keys@2.1.0|   | `-- camelcase@2.1.1|   +-- decamelize@1.2.0|   +-- loud-rejection@1.6.0|   | +-- currently-unhandled@0.4.1|   | | `-- array-find-index@1.0.2|   | `-- signal-exit@3.0.2|   +-- map-obj@1.0.1|   +-- minimist@1.2.0|   +-- normalize-package-data@2.4.0|   | +-- hosted-git-info@2.6.0|   | +-- is-builtin-module@1.0.0|   | | `-- builtin-modules@1.1.1|   | +-- semver@5.5.0|   | `-- validate-npm-package-license@3.0.3|   |   +-- spdx-correct@3.0.0|   |   | `-- spdx-license-ids@3.0.0|   |   `-- spdx-expression-parse@3.0.0|   |     `-- spdx-exceptions@2.1.0|   +-- object-assign@4.1.1|   +-- read-pkg-up@1.0.1|   | +-- find-up@1.1.2|   | | +-- path-exists@2.1.0|   | | `-- pinkie-promise@2.0.1|   | |   `-- pinkie@2.0.4|   | `-- read-pkg@1.1.0|   |   +-- load-json-file@1.1.0|   |   | +-- graceful-fs@4.1.11|   |   | +-- parse-json@2.2.0|   |   | | `-- error-ex@1.3.1|   |   | |   `-- is-arrayish@0.2.1|   |   | +-- pify@2.3.0|   |   | `-- strip-bom@2.0.0|   |   |   `-- is-utf8@0.2.1|   |   `-- path-type@1.1.0|   +-- redent@1.0.0|   | +-- indent-string@2.1.0|   | | `-- repeating@2.0.1|   | |   `-- is-finite@1.0.2|   | |     `-- number-is-nan@1.0.1|   | `-- strip-indent@1.0.1|   `-- trim-newlines@1.0.0+-- eventemitter2@0.4.14+-- exit@0.1.2+-- findup-sync@0.3.0| `-- glob@5.0.15+-- glob@7.0.6| +-- fs.realpath@1.0.0| +-- inflight@1.0.6| | `-- wrappy@1.0.2| +-- inherits@2.0.3| `-- once@1.4.0+-- grunt-cli@1.2.0| `-- resolve@1.1.7+-- grunt-known-options@1.1.0+-- grunt-legacy-log@1.0.1| +-- colors@1.1.2| +-- grunt-legacy-log-utils@1.0.0| | +-- chalk@1.1.3| | | +-- ansi-styles@2.2.1| | | +-- escape-string-regexp@1.0.5| | | +-- has-ansi@2.0.0| | | | `-- ansi-regex@2.1.1| | | +-- strip-ansi@3.0.1| | | `-- supports-color@2.0.0| | `-- lodash@4.3.0| +-- hooker@0.2.3| +-- lodash@4.17.5| `-- underscore.string@3.3.4|   +-- sprintf-js@1.1.1|   `-- util-deprecate@1.0.2+-- grunt-legacy-util@1.0.0| +-- async@1.5.2| +-- getobject@0.1.0| +-- lodash@4.3.0| +-- underscore.string@3.2.3| `-- which@1.2.14|   `-- isexe@2.0.0+-- iconv-lite@0.4.19+-- js-yaml@3.5.5| +-- argparse@1.0.10| | `-- sprintf-js@1.0.3| `-- esprima@2.7.3+-- minimatch@3.0.4| `-- brace-expansion@1.1.11|   +-- balanced-match@1.0.0|   `-- concat-map@0.0.1+-- nopt@3.0.6| `-- abbrev@1.1.1+-- path-is-absolute@1.0.1`-- rimraf@2.2.8E:\jiafubao\DS.JZB.Web>

2、
3.返回顶部
4.返回顶部
5.返回顶部
6. 错误 返回顶部
1、
1.1、标记分组内容不同。
Running "useminPrepare:html" (useminPrepare) task
Warning: Different sources attempting to write to the same destination:{"dest": ".tmp\\concat\\js\\mhappy.appvendor.min.js","src": ["m\\js\\activity.js"]
}{"files": []
} Use --force to continue.Aborted due to warnings.

1.2、每一个这种标记,相同的标记之间的内容必须是相同的,一个页面应该有好几个这样的标记组。
2、
2.1、
2.1.1、grunt build 命令键入无效
D:\work-JFB\JFBWeb>grunt build
grunt-cli: The grunt command line interface (v1.2.0)Fatal error: Unable to find local grunt.If you're seeing this message, grunt hasn't been installed locally to
your project. For more information about installing and configuring grunt,
please see the Getting Started guide:http://gruntjs.com/getting-started

2.1.2、
E:\jiafubao\DS.JZB.Web>grunt build
'grunt' 不是内部或外部命令,也不是可运行的程序
或批处理文件。

2.2、
E:\jiafubao\DS.JZB.Web>npm install grunt -g

3、
Running "useminPrepare:html" (useminPrepare) task
Warning: Different sources attempting to write to the same destination:{"dest": ".tmp\\concat\\js\\m.appvendor.min.js","src": ["m\\js\\wechatHelper.js","m\\js\\utils.js","m\\js\\template.js","m\\js\\shd.js"]
}{"files": []
} Use --force to continue.Aborted due to warnings.

4、
Running "useminPrepare:html" (useminPrepare) task
Warning: Different sources attempting to write to the same destination:{"dest": ".tmp\\concat\\css\\my.appvendor.min.css","src": ["y\\knowledge\\y\\css\\app.css"]
}{"files": []
} Use --force to continue.Aborted due to warnings.

5、
7.返回顶部
8.返回顶部
9.返回顶部
10.返回顶部
11.返回顶部
12.返回顶部
13.返回顶部
14.返回顶部
15.返回顶部
16.返回顶部
作者:ylbtech
出处:http://ylbtech.cnblogs.com/
本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利。

转载于:https://www.cnblogs.com/storebook/p/8631811.html

杂项-Grunt:grunt build 打包和常见错误相关推荐

  1. Vue项目打包部署教程及常见错误-前端开发

    目录 通用指南 打包 部署 1.静态或独立于后端部署前端应用时 2.Vue CLI 处理静态资源并和后端框架一起作为部署的一部分时 常见错误 一.publicPath引起的错误 二.在 history ...

  2. recect build 打包发布后访问出现404错误的简易解决方法

    今天receat build 打包一个项目的时候,正常输入index.html访问的时候没有问题,但是刷新后出现了404错误.调试的时候正常. 文件打包后生成index.html文件和dist目录. ...

  3. pyinstaller打包教程及错误RuntimeError: Unable to open ./shape_predictor_68_face_landmarks.dat

    pyinstaller打包教程及错误RuntimeError: Unable to open ./shape_predictor_68_face_landmarks.dat pyinstaller基本 ...

  4. 2021年 ARM嵌入式实战 第3章 C/C++编译常见错误

    一.预处理错误 1.include 出错第1种 include 就是把后面带有的" "或< >内容中查找的名字,双引号是在当前路 径查找,而尖括号是在系统环境变量中查找 ...

  5. Web开发人员最易犯下的十种常见错误

    对于如何完成同一项任务,摆在我们面前的方案选项似乎无穷无尽,特别是在开发一套能够运作在现代网络环境之下的网站时.Web开发人员首先需要挑选一套Web托管平台及底层数据存储机制,并利用由提供的工具编写H ...

  6. 解决 React Native 中的常见错误

    React Native 是当今最常用的 JavaScript 移动框架之一.React Native 使熟悉 JavaScript 和 React Web 框架的开发人员能够使用类似的方法和原理开发 ...

  7. Go的50坑:新Golang开发者要注意的陷阱、技巧和常见错误[2]

    Go的50坑:新Golang开发者要注意的陷阱.技巧和常见错误[2] 初级篇 开大括号不能放在单独的一行 未使用的变量 未使用的Imports 简式的变量声明仅可以在函数内部使用 使用简式声明重复声明 ...

  8. PHP编译安装时常见错误解决办法,php编译常见错误

    PHP编译安装时常见错误解决办法,php编译常见错误 1.configure: error: xslt-config not found. Please reinstall the libxslt & ...

  9. php源码编译常见错误解决方案大全

    php源码编译常见错误解决方案大全 http://www.cnlvzi.com/index.php/Index/article/id/143 在CentOS编译PHP5的时候有时会遇到以下的一些错误信 ...

最新文章

  1. Linux 操作系统原理 — 内存 — 基于 MMU 硬件单元的虚/实地址映射技术
  2. JDK/Java 14 正式发布!然而我还在用 Java 8...
  3. 五邑大学数据结构邢润丹实验_哪个大学楼最高:全国大学高楼海拔高度排名
  4. 牛客网 【每日一题】5月14日题目 maze
  5. 大华管理平台用户名_智能财务引领商业与管理变革——浙大EMBA首席财务官研习社走进大华股份...
  6. STM32之GPIO浮空输入例程
  7. C语言之预处理探究(二):条件编译(Condition Compile)
  8. 部署前端项目 Linux系统的nginx配置
  9. 正则表达式--C#正则表达式的符号及例子
  10. php对象的表示方法,PHP对象相关知识总结
  11. JavaBean到底是个什么东西
  12. 计算机硬件常识知识,计算机硬件基础知识大全
  13. 基于PHP+小程序(MINA框架)+Mysql数据库的共享会议室预约小程序系统设计与实现
  14. mac homebrew安装php,Mac Mojava 通过 homebrew 安装 PHP5.6 版本正确姿势
  15. 复合型网络拓扑结构图_网络拓扑结构图知识
  16. npm shrinkwrap的用途
  17. S参数三要素无源性(Passive),互易性(Reciprocoty)和因果性(Causality)
  18. 【neo4j】去除重复节点
  19. 【开发经验】md自动上传图片
  20. PyTorch强化:01.PyTorch 数据加载和处理

热门文章

  1. python教你如何跳过验证识别登录并自动发送弹幕
  2. 从教女友写代码中学到的,教人写代码在一定程度上是硬件问题
  3. Python skimage快速图像处理(二)——Numpy速成
  4. Python爬虫入门教程【19】: B站博人传评论数据抓取 scrapy
  5. java——Scanner中nextLine()方法和next()方法的区别
  6. grant 1.0 mysql 权限系统工作原理
  7. 7-96 获奖的运气
  8. 双屏切换单屏,之前在另一显示器显示的软件窗口现无法显示解决方法
  9. 李敖北大清华和复旦演讲
  10. python使用while、for及循环嵌套实现直角三角形及正、倒金字塔