Meteor 错误阻止启动:使用静态html处理文件时
错误阻止启动:在使用静态html处理文件时 作为我对meteor的介绍,我正在测试forked软件包。 我运行了以下命令Meteor 错误阻止启动:使用静态html处理文件时,meteor,Meteor,错误阻止启动:在使用静态html处理文件时 作为我对meteor的介绍,我正在测试forked软件包。 我运行了以下命令 $ mkdir tempspace $ cd tempspace $ git clone https://github.com/gterrono/houston $ meteor create --bare houston $ cd houston $ meteor node -v v4.8.4 # meteor reset # starts from scratch, d
$ mkdir tempspace
$ cd tempspace
$ git clone https://github.com/gterrono/houston
$ meteor create --bare houston
$ cd houston
$ meteor node -v
v4.8.4
# meteor reset # starts from scratch, deletes databases
$ meteor update
This project is already at Meteor 1.5.2, the latest release.
Changes to your project's package version selections from updating package
versions:
dynamic-import upgraded from 0.1.1 to 0.1.3
$ meteor run --port 192.168.1.98:3000
Selecting package versions
=> Started proxy
| Bulding for web.browser
| Linking
| Building for os.linux_x32
第一条错误消息
=> Errors prevented startup:
While processing files with static-html (for target web.browser):
client/partials/admin_nav.html:1: Expected <head> or <body> tag
client/partials/custom_actions.html:1: Expected <head> or <body> tag
client/partials/flash_message.html:1: Expected <head> or <body> tag
client/third-party/bootstrap.html:1: Expected <head> or <body> tag
client/third-party/collapse.js.html:1: Expected <head> or <body> tag
test/test_app/my_tmpl.html:1: Expected <head> or <body> tag
test/test_app/test.html:11: Expected <head> or <body> tag
client/admin_change_password.html:1: Expected <head> or <body> tag
client/admin_login.html:1: Expected <head> or <body> tag
client/collection_view.html:1: Expected <head> or <body> tag
client/custom_template_view.html:1: Expected <head> or <body> tag
client/db_view.html:1: Expected <head> or <body> tag
client/document_view.html:1: Expected <head> or <body> tag
client/master_layout.html:10: Expected <head> or <body> tag
client/style.css.html:1: Expected <head> or <body> tag
=> Your application has errors. Waiting for file change.
=> Started MongoDB.
所以我在网上搜索类似的问题,发现:
- github.com iron meteor/iron cli问题[#256],此问题尚无答案
和
标记
到文件client/master_layout.html
的顶部,该文件没有更改
错误消息
<head>
<title>Houston</title>
</head>
<body>
{{> _houston_master_layout}}
</body>
<template name="_houston_master_layout">
...
解决头标记未找到的错误,但导致其他不同的错误,这将作为下一个调试线索。是的,与我的情况有些类似。流星1.5.2.2
我创建了一个--bare项目,然后在客户机文件夹中添加标准文件夹,如client、server和public以及基本文件。
在.meteor/packages中注释静态html之后,它就可以工作了,然后添加blaze html模板 #静态html#删除此包
blaze html模板#在重新安装fresh meteor时添加此软件包相同问题。。。由于磁盘崩溃
meteor remove static-html
meteor add blaze-html-templates
使我的应用程序能够启动你能添加所有步骤来重现此错误吗?@Styx我已更新了我的原始帖子,以显示复制问题的确切命令(在当前开发机器上)。已确认。非常感谢。
#static-html # remove this package
blaze-html-templates # add this package
meteor remove static-html
meteor add blaze-html-templates