[英]i'm quite new in node.js learning and getting this error a lot can u help me
enter image description here i'm getting this error在这里输入图片描述我收到这个错误
node:internal/fs/utils:348
throw err;
^
Error: ENOENT: no such file or directory, open '-s'
at Object.openSync (node:fs:600:3)
at Object.readFileSync (node:fs:468:35)
at Object.<anonymous> (C:\Users\kshit\Desktop\projects\wcat\wcat.js:34:27)
at Module._compile (node:internal/modules/cjs/loader:1159:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1213:10)
at Module.load (node:internal/modules/cjs/loader:1037:32)
at Module._load (node:internal/modules/cjs/loader:878:12) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
at node:internal/main/run_main_module:23:47 {
errno: -4058,
syscall: 'open',
code: 'ENOENT',
path: '-s'
}
i don't know what to do我不知道该怎么办
The path that you have entered to read files may be invalid you need to use proper fs syntax to read the files您输入的读取文件的路径可能无效您需要使用正确的 fs 语法来读取文件
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.