Windows 10 won't run getstorybook - EPERM: operation not permitted, unlink
See original GitHub issueHi there,
I have a big issue when trying to run getstorybook - installer throws error and stops the whole process.
Message I get is:
• Detecting project type. ✓
• Adding storybook support to your "React" app. ✓
• Preparing to install dependencies. ✓
yarn install v1.1.0
[1/4] Resolving packages...
[2/4] Fetching packages...
info fsevents@1.1.2: The platform "win32" is incompatible with this module.
info "fsevents@1.1.2" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
error An unexpected error occurred: "EPERM: operation not permitted, unlink 'D:\\kamil\\App\\node_modules\\farmhash\\build\\Release\\farmhash-legacy.node'".
info If you think this is a bug, please open a bug report with the information provided in "D:\\kamill\\App\\yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
• Installing dependencies. ✖
An error occurred while installing dependencies.
Could someone please let me know how to handle this one? It’s driving me crazy.
Issue Analytics
- State:
- Created 6 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
Windows 10 won't run getstorybook - EPERM: operation not ...
Hi there, I have a big issue when trying to run getstorybook - installer throws error and stops the whole process.
Read more >Error: EPERM: operation not permitted, unlink 'D:\Sources ...
I was able to fix this by running the command prompt/bash as admin and closing VSCode! Seems like VSCode was locking some files....
Read more >Frequently Asked Questions - Storybook - JS.ORG
Storybook is a frontend workshop for building UI components and pages in isolation. Thousands of teams use it for UI development, testing, and...
Read more >Npx create-react-app fails with Error: EPERM: operation not ...
Hello: I'm trying to create a new react project using create-react-app: devilbox@php-7.4.19 in /shared/httpd/storybook-01/htdocs $ npx ...
Read more >Discord - How to Fix "A JavaScript Error Occurred in the Main ...
Discord Tutorials. Discord - How to Fix "A JavaScript Error Occurred in the Main Process" Error - Windows 10. 555K views 3 years...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Try running your terminal in admin mode.
@kkollman when I have this “EPERM: operation not permitted, unlink […]” issue on windows it’s because: -Atom (or any IDE) is open and using the project -I use Atom Beta (open or not), the fix for this one is to use the stable release of Atom -My local server is running
So maybe it’s not a problem with storybook.