在终端中运行代码时,我不断收到此错误。
错误TS18003:在配置文件“ tsconfig.json”中未找到任何输入。 指定的“包含”路径为 '[“ ./thndr_app/backend_server","./typings/global.d.ts”]'和'exclude' 路径为“ [“ ./node_modules”]'。
npm ERR!代码ELIFECYCLE npm ERR! errno 1 npm错误!这可能是 npm没问题。可能还有其他日志记录输出 以上。
npm ERR!此运行的完整日志可以在以下位置找到:npm ERR!
C:\ Users \ SamyB \ AppData \ Roaming \ npm-cache_logs \ 2020-08-04T02_57_31_227Z-debug.log
我确实尝试过搜索 Stack Overflow 和 GitHub 上的每个线程,并尝试了已发布的所有可能的命令行选项。使用npm install
不起作用,我也尝试过删除并重新安装其他文件。有人修复吗?我一直在努力使它工作几个小时。感谢您的帮助,非常感谢。
这是我的 tsconfig.json 文件:
{
"compilerOptions": {
"target": "es2017",
"module": "commonjs",
"types": ["node"],
"strict": true,
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true
},
"include": [
"./thndr_app/backend_server",
"./typings/global.d.ts",
],
"exclude": [
"./node_modules",
],
}