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.

Can't install brunch on Windows 10 - Error: EPERM: operation not permitted, unlink

See original GitHub issue

Description

Can’t install brunch on Windows 10

Expected behavior

I expect npm install -g brunch to install brunch without errors.

Actual behavior

  1. No antivirus installed. Windows protection is turned off.
  2. All commands are run in as Administrator.
npm install -g brunch

C:\Users\foo\AppData\Roaming\npm\brunch -> C:\Users\foo\AppData\Roaming\npm\node_modules\brunch\bin\brunch
npm ERR! path C:\Users\foo\AppData\Roaming\npm\node_modules\brunch\node_modules\fsevents\node_modules\abbrev\package.json
npm ERR! code EPERM
npm ERR! errno -4048
npm ERR! syscall unlink
npm ERR! Error: EPERM: operation not permitted, unlink 'C:\Users\foo\AppData\Roaming\npm\node_modules\brunch\node_modules\fsevents\node_modules\abbrev\package.json'
npm ERR!  { Error: EPERM: operation not permitted, unlink 'C:\Users\foo\AppData\Roaming\npm\node_modules\brunch\node_modules\fsevents\node_modules\abbrev\package.json'
npm ERR!   stack: 'Error: EPERM: operation not permitted, unlink \'C:\\Users\\foo\\AppData\\Roaming\\npm\\node_modules\\brunch\\node_modules\\fsevents\\node_modules\\abbrev\\package.json\'',
npm ERR!   errno: -4048,
npm ERR!   code: 'EPERM',
npm ERR!   syscall: 'unlink',
npm ERR!   path: 'C:\\Users\\foo\\AppData\\Roaming\\npm\\node_modules\\brunch\\node_modules\\fsevents\\node_modules\\abbrev\\package.json' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\foo\AppData\Roaming\npm-cache\_logs\2017-08-28T22_49_59_863Z-debug.log

Environment

Brunch:

Can't install it. That's the problem.

Node.js:

v8.4.0

NPM:

5.4.0

Operating system:

Microsoft Windows [Version 10.0.15063]

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
rendallcommented, Sep 7, 2017

@bxqgit Try rolling back to 5.3.0. npm i -g npm@5.3.0 There is likely an issue with 5.4.0

0reactions
shvaikaleshcommented, Sep 7, 2017

I will go ahead and close this issue. Please reopen if the problem is in Brunch core.

Read more comments on GitHub >

github_iconTop Results From Across the Web

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 >
EPERM: operation not permitted, unlink chromedriver
On running yarn with a selenium-standalone dependency, you may encounter this error: yarn install v1.3.2 [1/4] Resolving packages.
Read more >
How to Install Chrome OS Flex on Windows PC, Laptop, and ...
Learn how to install Chrome OS Flex on Windows PC, laptop, or MacBook for free. Check out the requirements and steps to run...
Read more >
chokidar-next - npm
Node.js fs.watchFile : Almost as bad at event handling. Also does not provide any recursive watching. Results in high CPU ...
Read more >
Fuo - River Thames Conditions - Environment Agency - GOV.UK
Paleo breakfast proteins, Glass dining room sets modern, Balbina nichtstun mit ... Sternenlieder, Eperm operation not permitted unlink, Deco fairs brighton, ...
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