javascript - 执行我的文件时出现的这个错误是什么?
问题描述
有什么问题 ???在 VS 代码中执行我的文件时,我正在使用 JavaScript 开发一个不和谐的机器人,它可以正常工作,但在 Repl.it 中它向我显示了这个错误
internal/fs/utils.js:269
throw err;
^
Error: ENOENT: no such file or directory, open '/home/runner/Bot/index.js'
at Object.openSync (fs.js:462:3)
at Object.readFileSync (fs.js:364:35)
at Object.<anonymous> (/run_dir/interp.js:195:19)
at Module._compile (internal/modules/cjs/loader.js:999:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
at Module.load (internal/modules/cjs/loader.js:863:32)
at Function.Module._load (internal/modules/cjs/loader.js:708:14)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:60:12)
at internal/main/run_main_module.js:17:47 {
errno: -2,
syscall: 'open',
code: 'ENOENT',
path: '/home/runner/Bot/index.js'
}
解决方案
推荐阅读
- bash - 使用 bash 操作基因库文件
- json - 登录后如何从 Django 返回 Json 中的 User()?
- java - GWT 应用程序在 Windows 上运行,而不是在具有相同配置的 Linux 上运行
- flutter - Flutter 如何识别 Flutter android 应用程序已安装并在 BlueStacks windows 应用程序 - PC 中使用?
- windows - git commit 在 Windows 10 上对包含空格字符的目录名称失败
- tensorflow-federated - 调用函数 tff.learning.build_federated_averaging_process 时的学习率设置
- javascript - 如何在 iframe 中使用 clearInterval 来停止父 html 的 setInterval 的滴答声
- r - Apollo R:apollo_estimate 中的错误(apollo_beta,apollo_fixed,apollo_probabilities,:未进行估计
- javascript - 我如何开玩笑地模拟对构造函数的调用
- symfony - 在 Laravel/Lumen 中找不到类“Symfony\Component\EventDispatcher\Event”