简体   繁体   English

我是 node.js 的新手,经常遇到这个错误,你能帮我吗

[英]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.

相关问题 对 Node JS 很陌生,我正在尝试发布到特定请求,但它让我出错 - Quite new to Node JS and I am trying to post to a specific request but it get me error 我试图从 Node.js 中的 MySQL 数据库中获取前 3 个结果,但出现此错误 - I'm trying to get first 3 results from MySQL database in Node.js and I'm getting this error 有人可以帮我在Node.Js中设置缓冲区吗? - Can someone help me set up a buffer in Node.Js? 为什么即使我不尝试解析,node.js 也会给我一个解析错误? - Why does node.js give me a parsing error even when I'm not trying to parse? 我无法理解Node.JS,任何资源和教程可以帮助我吗? - I Just Can't Understand Node.JS, Any Resources and Tutorials Out There To Help Me Out? Node.js —请帮助我进行递归 - Node.js — please help me with recursion 我得到 Promise {<pennding> } 在 node.js 异步 function</pennding> - I'm getting Promise { <pennding> } on node.js async function 运行main.js时出现错误。 “找不到模块&#39;app&#39;”。 谁能帮我 - I'm getting an error while running main.js. “ Cannot find module 'app' ”. Could anyone help me out 按下新用户时,node.js 出现错误 - node.js getting error when pressing new user 我是使用 node.js 制作 discord 机器人的新手,我对此感到困惑 - I'm new to making discord bot with node.js and i'm stumped on this
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM