MySQL Meteor error :"bad formatting in HTML template" after installing mysql-live-select

MySQL Meteor error :"bad formatting in HTML template" after installing mysql-live-select

我一直在尝试将 mysql 与 meteor 集成。

我使用命令

在 meteor 应用程序中安装了 mysql-live-select 包
npm install mysql

这是成功的。我按照 https://github.com/numtel/mysql-live-select 上的说明进行操作。

在 运行 meteor 应用程序之后我得到了以下错误

While building the application:
node_modules/mysql-live-select/node_modules/mysql/node_modules/bignumber.js/doc/API.html:1: Can't set DOCTYPE here.  (Meteor sets
<!DOCTYPE html> for you)

=> Your application has errors. Waiting for file change.

然后我从 api.hmtl 文件中删除了 DOCTYPE html,这再次在 运行 流星应用程序上给我以下错误。

While building the application:
node_modules/mysql-live-select/node_modules/mysql/node_modules/bignumber.js/doc/API.html:2: bad formatting in HTML template

=> Your application has errors. Waiting for file change.

2 天前,我在另一台 ubuntu 机器上执行了相同的步骤,并且运行良好。然而,当我今天尝试集成 MySQL 和 Meteor 时,我在两台 ubuntu 机器上都遇到了上述错误。

由于 HTML 文件是通过安装 mysql-live-select 软件包生成的文件,这可能是什么原因?我该如何解决?

这不是 Meteor 包,您必须改用 https://github.com/numtel/meteor-mysql。 错误是它试图将 node.js 包中的所有 HTML 文档放入流星模板中。