-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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: Failed to link ***: EPERM on Windows #13659
Comments
Alright, this is my antivirus killing everything in project folder's I don't want to disable my antivirus just for that because I work on my projects almost daily. |
@paperdave when are you writing a blog post on your talk about this |
this is the second case i've seen anyone report this exe flagged. what anti virus software is it? i'd like to do some work later to make sure this is not the case going forward. you can add the exe's hash to a whitelist, but due to #12738, the hash of that exe is not currently consistent and would have to be re-applied on every upgrade. that would be the first step to solving this issue.
not sure, as i'm spending most of my time on #13215. writing an entire blog post on this is not a priority.
the exe variant of this shim is the highest quality experience, and the proper solution is to figure out what stops anti-virus software. for what it's worth, we could add cmd/ps1 fallbacks for when this fails, but i don't think that workaround is a good idea. in addition, there is not enough error handling in bun install to say what part of the installation hit EPERM ( |
360 Total Security. The files are marked as generic Trojans. |
It seems to be a problem with Malwarebytes as well, all .exe files created by Bun (including my own lib) are nuked by it. |
What version of Bun is running?
1.1.26 0a37423ba
What platform is your computer?
Microsoft Windows NT 10.0.22621.0 x64
What steps can reproduce the bug?
Oh, if only I knew.
What is the expected behavior?
bun install
must install packages without errors.What do you see instead?
Any time I run
bun install
(in any project but here is one example), I get dozens ofFailed to link X: EPERM
:I've attempted:
C:\Users\Comigo\.bun\install\cache
,node_modules
folder in my project,bun install
all to no avail. I cannot continue working on my project.
I never run bun as admin. I also don't understand why the linking when all these packages are not installed globally, and some of them are dependencies.
Additional information
My package.json:
The text was updated successfully, but these errors were encountered: