Next.js Discord

Discord Forum

ERR: Operation no permited, Windows 10

Unanswered
Brown bear posted this in #help-forum
Open in Discord
Brown bearOP
I switched the project from yarn to bun and now when i run bun run dev i have a lots of error with this simmilar message:

[Error: EPERM: operation not permitted, rename 'C:\Users\Tomy\Desktop\ZX\blkweb.next\build-manifest.json.tmp.havd2cze33j' -> 'C:\Users\Tomy\Desktop\ZX\blkweb.next\build-manifest.json'] {
errno: -4048,
code: 'EPERM',
syscall: 'rename',
path: 'C:\Users\Tomy\Desktop\ZX\blkweb\.next\build-manifest.json.tmp.havd2cze33j',
dest: 'C:\Users\Tomy\Desktop\ZX\blkweb\.next\build-manifest.json'
}

6 Replies

Sun bear
instead of running:
bun install

try:
bun.exe install
before trying this you can also try upgrading to the latest version of bun and then running the normal command. bun upgrade --canary
Russian Blue
oh no i hope you don't have to do that for it to work
Sun bear
just try this: bun upgrade --canary
I read somewhere that it is patched in newer versions
Russian Blue
In this case, the EPERM is happening in Node and not in Bun (Bun doesn't print [Error: EPERM this way)

It is strange that this works when using yarn though. Usually this kind of issue is related to anti-virus software