question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

react-scripts trying to access .steampath

See original GitHub issue

Describe the bug

If some module resolution fails, react-scripts try to stat all files in user’s home directory. if there are some broken link no home folder, development server crashes.

Did you try recovering your dependencies?

Yes.

Which terms did you search for in User Guide?

.steampath

Related, and explained comment: https://github.com/facebook/create-react-app/issues/9156#issuecomment-645512859

Environment

Environment Info:

  current version of create-react-app: 3.4.1
  running from /home/rolivegab/.npm/_npx/171872/lib/node_modules/create-react-app

  System:
    OS: Linux 5.8 Fedora 32 (Workstation Edition) 32 (Workstation Edition)
    CPU: (12) x64 AMD Ryzen 5 2600 Six-Core Processor
  Binaries:
    Node: 14.7.0 - ~/.nvm/versions/node/v14.7.0/bin/node
    Yarn: 1.22.5 - /usr/bin/yarn
    npm: 6.14.8 - ~/.nvm/versions/node/v14.7.0/bin/npm
  Browsers:
    Chrome: 86.0.4240.75
    Firefox: 81.0.1
  npmPackages:
    react: ^16.14.0 => 16.14.0 
    react-dom: ^16.14.0 => 16.14.0 
    react-scripts: 3.4.3 => 3.4.3 
  npmGlobalPackages:
    create-react-app: Not Found

Steps to reproduce

  1. Since it depends on machine’s having a broken link on home directory, you need to create a broken file there. My .steampath file is just a broken link: image

  2. npm start

  3. force a module resolution failed, or something output:

image

Expected behavior

react-scripts should not stop development server because a broken link in home directory.

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:21
  • Comments:16

github_iconTop GitHub Comments

31reactions
alexhochreitercommented, Jan 23, 2021

Today i looked closer at why my react-scripts server is randomly crashing during development (only happens after multiple hours or days) and came across the same issue as op:

Compiling...
/home/alex/work/bla/blabla/myproject/node_modules/react-scripts/scripts/start.js:19
  throw err;
  ^

[Error: ENOENT: no such file or directory, stat '/home/alex/.steampath'] {
  errno: -2,
  code: 'ENOENT',
  syscall: 'stat',
  path: '/home/alex/.steampath'
}
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! myproject@0.1.0 dev: `npx rimraf node_modules && npm i && react-scripts start`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the myproject@0.1.0 dev script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/alex/.npm/_logs/2021-01-23T08_43_37_732Z-debug.log

It’s easy to fix with a simple restart, but what i don’t understand is: WHY THE HECK IS IT TRYING TO ACCESS MY STEAM STUFF OR STAT-ING MY PRIVATE HOME DIR AT ALL? Does Facebook really need to know what’s in my steam lib or how many hours i’ve killed in Hatoful Boyfriend?

24reactions
stale[bot]commented, Dec 25, 2020

This issue has been automatically marked as stale because it has not had any recent activity. It will be closed in 5 days if no further activity occurs.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Is react-scripts trying access my .steampath? Why? #9156
But I believe it might be true that some dependency is trying to access .steampath . I can not, however, successfully replicate the...
Read more >
Error: ENOENT: no such file or directory, stat ... .steampath
I've found out the solution. This error is just a fancy/convoluted missing dependencies message. If you install all the dependencies the ...
Read more >
Javascript – Error: ENOENT: no such file or directory, stat ... - iTecNote
Javascript – Error: ENOENT: no such file or directory, stat … .steampath ... I am trying to start the development server on a...
Read more >
Error: Enoent: No Such File Or Directory, Stat ... - ADocLib
i got the problem spawn npm enoent < | NodeBB. How to find the version reactscripts trying to access.steampath createreactapp. MDBPro ...
Read more >
Fixing 'react-scripts' is not recognized error - Nathan Sebhastian
How to fix 'react-scripts' is not recognized as an internal or external command error.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found