【问题标题】:Error: ENOENT: no such file or directory, stat '/home/arpit/.steampath'错误:ENOENT:没有这样的文件或目录,stat '/home/arpit/.steampath'
【发布时间】:2021-06-08 06:34:10
【问题描述】:

当我尝试运行 npm start 时,我得到 [错误:ENOENT:没有这样的文件或目录,stat '/home/arpit/.steampath'] 错误。我试过删除节点模块并重新安装它们,我也重新安装了 NPM,但这个错误并没有消失。我在终端的正确位置。我正在使用 Linux 操作系统。 完整的错误是

Compiling...
/home/arpit/Desktop/Coding/API-Practice/frontend/node_modules/react-scripts/scripts/start.js:19
  throw err;
  ^

[Error: ENOENT: no such file or directory, stat '/home/arpit/.steampath'] {
  errno: -2,
  code: 'ENOENT',
  syscall: 'stat',
  path: '/home/arpit/.steampath'
}

【问题讨论】:

    标签: javascript node.js reactjs ubuntu npm


    【解决方案1】:

    尝试重定向 npm 输出以查看实际错误:

    npm run start 2>&1 | tee /tmp/output
    

    似乎是facebook/creat-react-app 的一个错误。还要检查thisthis 问题。

    【讨论】:

      猜你喜欢
      • 2021-03-05
      • 1970-01-01
      • 1970-01-01
      • 2022-12-18
      • 2019-02-23
      • 2019-05-08
      • 1970-01-01
      • 2020-06-03
      • 2021-04-26
      相关资源
      最近更新 更多