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.

Windows 10 won't run getstorybook - EPERM: operation not permitted, unlink

See original GitHub issue

Hi 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:closed
  • Created 6 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
danielduancommented, Sep 28, 2017

Try running your terminal in admin mode.

1reaction
yourikopeckycommented, Sep 26, 2017

@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.

Read more comments on GitHub >

github_iconTop 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 >

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