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
舉報
2021-08-08
你把你寫的代碼貼出來,不然怎么知道你哪里寫錯了
2020-12-11
檢查是否是項目根路徑,如果不是需要加上對應的文件夾路徑