Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: EPERM: operation not permitted, rename... #139

Closed
andrewsantarin opened this issue Oct 3, 2017 · 1 comment
Closed

Error: EPERM: operation not permitted, rename... #139

andrewsantarin opened this issue Oct 3, 2017 · 1 comment

Comments

@andrewsantarin
Copy link

andrewsantarin commented Oct 3, 2017

Hi. Windows user here.

I'd like to point out that npm install might not work for Windows users right out of the box.

Error: EPERM: operation not permitted, rename 'D:\Projects\libphonenumber-js\node_modules\.staging\acorn-47041570' -> 'D:\Projects\libphonenumber-js\node_modules\acorn'
    at destStatted (C:\Program Files\nodejs\node_modules\npm\lib\install\action\finalize.js:25:7)
    at FSReqWrap.oncomplete (fs.js:123:15)

Error: EPERM: operation not permitted, rename 'D:\Projects\libphonenumber-js\node_modules\.staging\acorn-47041570' -> 'D:\Projects\libphonenumber-js\node_modules\acorn'
    at Error (native)
 { Error: EPERM: operation not permitted, rename 'D:\Projects\libphonenumber-js\node_modules\.staging\acorn-47041570' -> 'D:\Projects\libphonenumber-js\node_modules\acorn'
    at destStatted (C:\Program Files\nodejs\node_modules\npm\lib\install\action\finalize.js:25:7)
    at FSReqWrap.oncomplete (fs.js:123:15)

Error: EPERM: operation not permitted, rename 'D:\Projects\libphonenumber-js\node_modules\.staging\acorn-47041570' -> 'D:\Projects\libphonenumber-js\node_modules\acorn'
    at Error (native) parent: 'libphonenumber-js' }

Please try running this command again as root/Administrator.

I had to loosen up Windows Defender either by:

  1. disabling real-time protection
  2. creating a folder exclusion

There is, of course, third-party antivirus protection, but yeah, I hope this finding helps the next guy running on Windows.

@catamphetamine
Copy link
Owner

Seems like something related to installing acorn package.
I don't think it's something unique to this library.
Anyway, thx.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants