coryhouse / coryhouse/react-slingshot
Something killing the npm start process: Error: EPERM: operation not permitted, scandir...
- Dominant language
- JavaScript
- Stars
- 9.6k
- Forks
- 2.9k
- PR merge metrics
- No merged PRs in 30d
Description
So, im new to this repo, was playing around with it today and i found the following issue. Demo app builds and runs fine. but when you are editing files (while `npm start` process running in the background), sometimes the process crashes and you see the following output on the command line:
````
...
...
webpack built 3526873400bd03ea1758 in 592ms
webpack building...
✓ Clean (22:38:14)
webpack built 93b985d4897ec40ced4b in 606ms
Error: EPERM: operation not permitted, scandir '__DIR_OF_PROJECT__\src\components\AboutPage.js___jb_old___'
at Object.fs.readdirSync (fs.js:904:18)
at GlobSync._readdir (__DIR_OF_PROJECT__\node_modules\glob\sync.js:288:41)
at GlobSync._readdir (__DIR_OF_PROJECT__\node_modules\eslint\lib\util\glob.js:59:36)
at GlobSync._readdirInGlobStar (__DIR_OF_PROJECT__\node_modules\glob\sync.js:267:20)
at GlobSync._readdir (__DIR_OF_PROJECT__\node_modules\glob\sync.js:276:17)
at GlobSync._readdir (__DIR_OF_PROJECT__\node_modules\eslint\lib\util\glob.js:59:36)
at GlobSync._processReaddir (__DIR_OF_PROJECT__\node_modules\glob\sync.js:137:22)
at GlobSync._process (__DIR_OF_PROJECT__\node_modules\glob\sync.js:132:10)
at GlobSync._processGlobStar (__DIR_OF_PROJECT__\node_modules\glob\sync.js:380:10)
at GlobSync._process (__DIR_OF_PROJECT__\node_modules\glob\sync.js:130:10)
__DIR_OF_PROJECT__>
````
* replaced my directory path with `__DIR_OF_PROJECT__` above
OS: Windows 10
`npm -v`: 5.6.0
`node -v`: v9.5.0
Its a fresh clone of this repo.
any ideas? O.o
Contributor guide
Research direction
Reproduce the failure on Windows 10 by running npm start while editing src/components/AboutPage.js. Start with the stack-trace path through node_modules/glob/sync.js and node_modules/eslint/lib/util/glob.js, then trace which watch or lint step scans the temporary ___jb_old___ path. Done means the development process no longer crashes with EPERM during file edits.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- eslint, javascript, nodejs, webpack
- Domain
- build-system, tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100