草庐IT

node.js - heroku上的咕噜声和 bower

今天我想将我的node.js应用程序部署到heroku。在本地,我也在使用bower和grunt进行开发,我还想继续使用它们。现在,根据我在网上找到的一些建议,我将bower添加到我的dependencies并添加了"postinstall":"node_modules/.bin/bowerinstall到我的package.jsonpostinstall.现在我遇到了grunt的一些问题。当我将grunt依赖项从devDependencies移动到dependencies时,grunt无法识别我的tasks,例如当我有{"name":"js-linkedin-connector","

node.js - 咕噜声 : Fatal error: Port 35729 is already in use by another process

咕噜在工作。但是在将我的站点文件移到一个目录之后,坐在根目录下,grunt停止了工作:fatalerror:端口35729已被另一个进程使用。在这种情况下路径重要吗?查看端口35729,我发现Grunt是在该端口上运行的唯一进程。我杀死了那个进程,确认没有其他进程在35729上运行,然后再次运行grunt,但仍然遇到与以前相同的fatalerror。尽管自从grunt工作以来我的配置文件都没有更改,但我想我会尝试使用“npminit”方法创建一个新的package.json,然后再次运行“npminstall”并确认它已下载“Node模块”。我还能尝试什么?我在MacOS10.10.5

node.js - 咕噜声错误 : Cannot find module 'time-grunt'

我尝试安装time-gruntlocal和global,清除npm缓存,更新npm,但没有任何帮助。我明白了:Loading"Gruntfile.js"tasks...ERRORError:Cannotfindmodule'time-grunt'Warning:Task"default"notfound.Use--forcetocontinue.我的软件包版本:Node:'0.10.31',npm:'1.4.23'运行后:npminstall--save-devtime-grunt在package.json状态:"devDependencies":{"grunt":"^0.4.5",.

node.js - 咕噜声 - 得到 "Local Npm module "xxx"not found. 它是安装 ?"What' s 造成的吗?

我刚刚收到一份grunt包的副本,但我是grunt的新手,并且无法找到一些问题的答案。最大的问题是不知道下面的错误来自哪里-有人可以告诉我这是来自哪里吗?这两个文件都在同一个目录中。$grunt>>LocalNpmmodule"grunt-contrib-clean"notfound.Isitinstalled?>>LocalNpmmodule"grunt-contrib-concat"notfound.Isitinstalled?>>LocalNpmmodule"grunt-contrib-copy"notfound.Isitinstalled?>>LocalNpmmodule"gr

node.js - 咕噜声错误 : cannot find module 'load-grunt-tasks'

当我使用grunt命令时,它显示以下错误:$gruntLoading"Gruntfile.js"tasks...ERROR>>Error:Cannotfindmodule'load-grunt-tasks'Warning:Task"default"notfound.Use--forcetocontinue.Abortedduetowarnings.ExecutionTime(2015-02-0718:05:42UTC)loadingtasks339ms███████████████████████████████████████████████99%Total344ms我已经尝试过-n

node.js - Windows 8 上的咕噜声 : 'grunt' is not recognized

我在Windows8机器上从命令行运行Grunt时遇到问题。我的研究表明,最常见的解决方案是安装grunt-cli,因为Grunt不再是全局的。我还需要确保我确实安装了Grunt任务运行程序,因为它没有与grunt-cli一起安装。其他解决方案指向PATH系统环境变量,但这似乎是我所期望的:C:\Users[username]\AppData\Roaming\npm完成所有这些操作后,我仍然在CLI中收到“'grunt'未被识别为内部或外部命令、可运行程序或批处理文件”错误消息。我尝试了以下方法,每次尝试后都卸载所有内容:全局安装grunt-cli(npminstall-ggrunt-

node.js - 咕噜声扔 "Recursive process.nextTick detected"

我正在使用nodejsv0.10.26运行Lion10.9.2我想在sass文件上设置一个自动编译并使用grunt实时重新加载,没什么复杂的,但是...运行gruntwatch时出现以下错误(node)warning:Recursiveprocess.nextTickdetected.Thiswillbreakinthenextversionofnode.PleaseusesetImmediateforrecursivedeferral.util.js:35varstr=String(f).replace(formatRegExp,function(x){^RangeError:Max

javascript - 内联 require.js 文本!使用咕噜声

今天下午我一直在试验Grunt和RequireJS。我是text模块的忠实粉丝,我用它来引入我的模板。在非基于Grunt的项目中,我使用了inlineText和stubModulesRequireJS选项来内联模板文件,效果很好。但是,我无法让它与Grunt一起使用。需要配置require.config({paths:{//UsingBowerfordependencymanagementtext:'../components/requirejs-text/text'}});用法define(['text!template.html'],function(html){//Dostuff
12