ylbtech-杂项-Grunt:grunt build 打包和常见错误
1. 安装、打包返回顶部
1、
npm WARN deprecated coffee-script@1.10.: 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.
added packages in .68s ╭─────────────────────────────────────

│ │
│ Update available 5.5. → 5.6. │
│ Run npm i -g npm to update │
│ │
╰─────────────────────────────────────
╯ D:\work-JFB\JFBWeb\DS.JZB.Web>grunt build
Running "clean:dist" (clean) task
>> 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 :v5 Running "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 :v1 Running "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 :v1 Running "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 :v1 Running "copy:dist" (copy) task
Created directories, copied files Running "copy:js" (copy) task Running "useminPrepare:html" (useminPrepare) task
Configuration changed for concat, uglify, cssmin Running "concat:generated" (concat) task Running "cssmin:generated" (cssmin) task
>> files created. 1.13 MB → 1.03 MB Running "uglify:generated" (uglify) task
>> files created 3.5 MB → 2.59 MB Running "filerev:js" (filerev) task
Revved files Running "filerev:css" (filerev) task
Revved file Running "usemin:html" (usemin) task
Replaced references to assets Running "htmlmin:dist" (htmlmin) task
Minified files Running "clean:tmp" (clean) task
>> path cleaned. Running "copy:js" (copy) task Running "clean:build" (clean) task
>> paths cleaned. Running "compress:main" (compress) task
>> Compressed 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.
+-- coffeescript@1.10.
+-- dateformat@1.0.
| +-- get-stdin@4.0.
| `-- meow@3.7.
| +-- camelcase-keys@2.1.
| | `-- camelcase@2.1.
| +-- decamelize@1.2.
| +-- loud-rejection@1.6.
| | +-- currently-unhandled@0.4.
| | | `-- array-find-index@1.0.
| | `-- signal-exit@3.0.
| +-- map-obj@1.0.
| +-- minimist@1.2.
| +-- normalize-package-data@2.4.
| | +-- hosted-git-info@2.6.
| | +-- is-builtin-module@1.0.
| | | `-- builtin-modules@1.1.
| | +-- semver@5.5.
| | `-- validate-npm-package-license@3.0.
| | +-- spdx-correct@3.0.
| | | `-- spdx-license-ids@3.0.
| | `-- spdx-expression-parse@3.0.
| | `-- spdx-exceptions@2.1.
| +-- object-assign@4.1.
| +-- read-pkg-up@1.0.
| | +-- find-up@1.1.
| | | +-- path-exists@2.1.
| | | `-- pinkie-promise@2.0.
| | | `-- pinkie@2.0.
| | `-- read-pkg@1.1.
| | +-- load-json-file@1.1.
| | | +-- graceful-fs@4.1.
| | | +-- parse-json@2.2.
| | | | `-- error-ex@1.3.
| | | | `-- is-arrayish@0.2.
| | | +-- pify@2.3.
| | | `-- strip-bom@2.0.
| | | `-- is-utf8@0.2.
| | `-- path-type@1.1.
| +-- redent@1.0.
| | +-- indent-string@2.1.
| | | `-- repeating@2.0.
| | | `-- is-finite@1.0.
| | | `-- number-is-nan@1.0.
| | `-- strip-indent@1.0.
| `-- trim-newlines@1.0.
+-- eventemitter2@0.4.
+-- exit@0.1.
+-- findup-sync@0.3.
| `-- glob@5.0.
+-- glob@7.0.
| +-- fs.realpath@1.0.
| +-- inflight@1.0.
| | `-- wrappy@1.0.
| +-- inherits@2.0.
| `-- once@1.4.
+-- grunt-cli@1.2.
| `-- resolve@1.1.
+-- grunt-known-options@1.1.
+-- grunt-legacy-log@1.0.
| +-- colors@1.1.
| +-- grunt-legacy-log-utils@1.0.
| | +-- chalk@1.1.
| | | +-- ansi-styles@2.2.
| | | +-- escape-string-regexp@1.0.
| | | +-- has-ansi@2.0.
| | | | `-- ansi-regex@2.1.
| | | +-- strip-ansi@3.0.
| | | `-- supports-color@2.0.
| | `-- lodash@4.3.
| +-- hooker@0.2.
| +-- lodash@4.17.
| `-- underscore.string@3.3.
| +-- sprintf-js@1.1.
| `-- util-deprecate@1.0.
+-- grunt-legacy-util@1.0.
| +-- async@1.5.
| +-- getobject@0.1.
| +-- lodash@4.3.
| +-- underscore.string@3.2.
| `-- which@1.2.
| `-- isexe@2.0.
+-- iconv-lite@0.4.
+-- js-yaml@3.5.
| +-- argparse@1.0.
| | `-- sprintf-js@1.0.
| `-- esprima@2.7.
+-- minimatch@3.0.
| `-- brace-expansion@1.1.
| +-- balanced-match@1.0.
| `-- concat-map@0.0.
+-- nopt@3.0.
| `-- abbrev@1.1.
+-- path-is-absolute@1.0.
`-- rimraf@2.2. E:\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/
本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利。

杂项-Grunt:grunt build 打包和常见错误的更多相关文章

  1. react-native打包apk常见错误收集

    react-native 0.59打包报错,信息如下,根据错误信息是因为react-native-cookies的sdk版本问题导致的 ./gradlew assembleRelease > C ...

  2. Grunt:常见错误

    ylbtech-Grunt:常见错误 1.返回顶部 1. D:\lab6\DS.JZB.Web>grunt build Running "clean:dist" (clean ...

  3. 杂项-TMod:常见错误

    ylbtech-杂项-TMod:常见错误 1.返回顶部 1. 1.1. {Template Error} TypeError: dateDiff is not a function at Array. ...

  4. 杂项-Tmod:常见错误提示

    ylbtech-杂项-Tmod:常见错误提示 1.返回顶部 1. The column 'Content' was specified multiple times for 'T'.select a. ...

  5. Android打包常见错误之Export aborted because fatal lint errors were found

    打包时报如下错误: <ignore_js_op> Export aborted because fatal lint errors were found. These are listed ...

  6. 杂项:Grunt

    ylbtech-杂项:Grunt GRUNTJavaScript 世界的构建工具 1. 返回顶部 1. 为何要用构建工具? 一句话:自动化.对于需要反复重复的任务,例如压缩(minification) ...

  7. JNI常见错误整理

    ndk开发常见错误1. android.mk文件不存在 $ ndk-buildAndroid NDK: Your APP_BUILD_SCRIPT points to an unknown file: ...

  8. Android NDK 开发(三)--常见错误锦集合Log的使用【转】

    转载请注明出处:http://blog.csdn.net/allen315410/article/details/41826511  Android NDK开发经常因某些因素会出现一些意想不到的错误, ...

  9. Hibernate常见错误整理

    Hibernate常见错误合集   1.错误:object references an unsaved transient instance - save the transient instance ...

随机推荐

  1. Centos7.4 Nginx反向代理+负载均衡配置

    Ningx是一款高性能的HTTP和反向代理服务器,配置起来也比较简单. 测试环境: 172.16.65.190 Nginx-反向代理 172.16.65.191 Ningx-Web 172.16.65 ...

  2. Docker Compose yml

    Wordpress + Mysql version: '3' services: db: image: mysql:latest volumes: - db_data:/var/lib/mysql e ...

  3. linux 虚拟机在线添加新磁盘

    在线添加磁盘,扩展LVM卷案例   一.添加硬盘,在线扫描出来 首先到虚拟机那里添加一块硬盘,注意必须是SCSI类型的硬盘. 扫描硬盘,不用重启操作系统的. echo "- - -" ...

  4. RequestMapping请求映射方式

    1.标准映射 规则: 1) @RequestMapping可以设置在类上,也可以设置在方法上 2) 请求的映射规则是:类上的RequestMapping + 方法上的RequestMapping 3) ...

  5. mybatis 一对多和多对一

      在学习MyBatis3的过程中,文档上面一直在强调一个id的东西!在做这个实验的时候,也因为没有理解清楚id含义而导致一对多的“多”中也只有一条数据.id和result的唯一不同是id表示的结果将 ...

  6. 把已安装的wampserver移动到不同目录使用应注意的问题

    很多时候需要把已安装的wampserver移动到不同目录使用,此时应注意几个问题: 1.修改D:\wamp64\bin\apache\apache2.4.9\conf目录下的httpd.conf文件( ...

  7. docker官方镜像库 搭建 jekins

    先去docker hub 镜像官网下载jenkins 镜像(https://hub.docker.com/_/jenkins/): 其实就是在docker 中执行命令:docker pull jenk ...

  8. HDU 5884 Sort(2016年青岛网络赛 G 二分+贪心+小优化)

    好题 题意:给你n<=100000个数,每个数范围[0,1000],然后给你一个最大的代价T,每次最多合并k个数成为一个数,代价为k个数的总和.问最后合成1个数的总代价不大于T的最小k 题解:我 ...

  9. [kuangbin带你飞]专题十 匹配问题 一般图匹配

    过去做的都是二分图匹配 即 同一个集合里的点 互相不联通 但是如果延伸到一般图上去 求一个一般图的最大匹配 就要用带花树来解决 带花树模板 用来处理一个无向图上的最大匹配 看了一会还是不懂  抄了一遍 ...

  10. @angular/cli项目构建--路由2

    app.module.ts update const routes: Routes = [ {path: '', redirectTo: '/home', pathMatch: 'full'}, {p ...