我的 repl 不起作用:html 文件已损坏

问题描述

知道要尝试什么! 我在我的 HunterOS Collab 上重新发布。 在 index.html 上,它的内容是这样的:

<!DOCTYPE html>
<html>
<head>
  <title>HunterOS</title>
</head>
<body>
</body>
</html>

它给出了这个错误: 第 1 行:意外标记 '

那不是真正的,但它解释了它。 如果我相信你,我们也许可以使用 replit 多人游戏

我还有一个包含内容的 nodejs 文件“index.js”:

console.log("booting...")
console.log("no HTML found.")
console.log("express required")

const express = require('express');

const app = express();

app.get('/',(req,res) => {
});

app.listen(3000,() => {
  console.log('Now listening');
});

require('./index.html')

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)