fs.readFile 找不到文件???
[Error: ENOENT: no such file or directory, open './index.html'] {
errno: -2,
code: 'ENOENT',
syscall: 'open',
path: './index.html'
}
fs.readFile 找不到文件
[Error: ENOENT: no such file or directory, open './index.html'] {
errno: -2,
code: 'ENOENT',
syscall: 'open',
path: './index.html'
}
fs.readFile 找不到文件
2020-11-26
舉報(bào)
2021-08-08
你把你寫(xiě)的代碼貼出來(lái),不然怎么知道你哪里寫(xiě)錯(cuò)了
2020-12-11
檢查是否是項(xiàng)目根路徑,如果不是需要加上對(duì)應(yīng)的文件夾路徑