无法与咕噜打造的jQuery - 子模块错误 [英] Unable to build jquery with grunt - submodule error

查看:149
本文介绍了无法与咕噜打造的jQuery - 子模块错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我没有运气使用咕噜建设的jQuery(GIT)。

I have no luck building the jQuery (git) using grunt.

一切顺利,直到它输出如下实际咕噜命令:

Everything went smoothly till the actual grunt command which outputs as following:

grunt --config Gruntfile.js 

Running "update_submodules" task

TypeError: Cannot call method 'spawn' of undefined
at Object.<anonymous> (/Users/maciejbodek/Dropbox/Htdocs/git/jquery/node_modules/grunt-update-submodules/tasks/update-submodules.js:7:14)
at Object.task.registerTask.thisTask.fn (/usr/local/lib/node_modules/grunt/lib/grunt/task.js:58:16)
at Task.<anonymous> (/usr/local/lib/node_modules/grunt/lib/util/task.js:343:36)
at Task.start (/usr/local/lib/node_modules/grunt/lib/util/task.js:359:5)
at Object.grunt.tasks (/usr/local/lib/node_modules/grunt/lib/grunt.js:143:8)
at Object.module.exports [as cli] (/usr/local/lib/node_modules/grunt/lib/grunt/cli.js:36:9)
at Object.<anonymous> (/usr/local/lib/node_modules/grunt/bin/grunt:19:14)
at Module._compile (module.js:449:26)
at Object.Module._extensions..js (module.js:467:10)
at Module.load (module.js:356:32)

任何提示AP preciated。安装所有需要的NPM dependiences等。这只是构建过程,最终被中止。

Any hints appreciated. Installed all the needed npm dependiences and so on. It's just the build process that ends up being aborted.

推荐答案

您需要运行咕噜,您可以用 NPM get安装咕噜@大师的最新开发版本

You need to run latest dev version of grunt, which you can get with npm install grunt@master

另外,还要确保你已经卸载了旧的全局咕噜 NPM卸载-g咕噜和安装咕噜-CLI全球 NPM安装-g咕噜-CLI

Also make sure you have uninstalled the old global grunt npm uninstall -g grunt and installed grunt-cli globally npm install -g grunt-cli.

请参阅从0.3升级到0.4

这篇关于无法与咕噜打造的jQuery - 子模块错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆