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 #35919

Open
PoojaDurgad opened this issue Nov 2, 2020 · 6 comments
Open

Error: EPERM: operation not permitted #35919

PoojaDurgad opened this issue Nov 2, 2020 · 6 comments
Labels
test Issues and PRs related to the tests. windows Issues and PRs related to the Windows platform.

Comments

@PoojaDurgad
Copy link
Contributor

PoojaDurgad commented Nov 2, 2020

  • Version:v16.0.0-pre
  • Platform:windows 10

What steps will reproduce the bug?

./vcbuild.bat test

What is the expected behavior?

run the test without fail

What do you see instead?

Path: es-module/test-esm-symlink-type
node:internal/fs/utils:306
    throw err;
    ^

Error: EPERM: operation not permitted, symlink 'C:\node\test\fixtures\es-modules\mjs-file.mjs' -> 'C:\node\test\.tmp.149\extensionless-symlink-to-mjs-file'
    at Object.symlinkSync (node:fs:1173:3)
    at C:\node\test\es-module\test-esm-symlink-type.js:48:6
    at Array.forEach (<anonymous>)
    at Object.<anonymous> (C:\node\test\es-module\test-esm-symlink-type.js:46:10)
    at Module._compile (node:internal/modules/cjs/loader:1083:30)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1112:10)
    at Module.load (node:internal/modules/cjs/loader:948:32)
    at Function.Module._load (node:internal/modules/cjs/loader:789:14)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:72:12)
    at node:internal/main/run_main_module:17:47 {
  errno: -4048,
  syscall: 'symlink',
  code: 'EPERM',
  path: 'C:\\node\\test\\fixtures\\es-modules\\mjs-file.mjs',
  dest: 'C:\\node\\test\\.tmp.149\\extensionless-symlink-to-mjs-file'
}

Additional information

I am trying to run tests in windows, and get a bunch of failures with similar errors

@PoojaDurgad PoojaDurgad added the test Issues and PRs related to the tests. label Nov 2, 2020
@PoojaDurgad PoojaDurgad changed the title getting errors when ./vcbuild.bat test is running Error: EPERM: operation not permitted Nov 2, 2020
@aduh95 aduh95 added the windows Issues and PRs related to the Windows platform. label Nov 2, 2020
@PoojaDurgad
Copy link
Contributor Author

running git bash as administrator solves the issue, but not sure if this is the right approach

@mmomtchev
Copy link
Contributor

@PoojaDurgad can you try deleting your whole source tree, then re-clone and rebuild?

@jasnell
Copy link
Member

jasnell commented Mar 5, 2021

I think the challenge might be related to git bash itself here. Can you build without using git bash?

@lemire
Copy link
Member

lemire commented Nov 15, 2023

I get this same error. If we are expected to run the builds under bash, shouldn't this be documented?

@lemire
Copy link
Member

lemire commented Nov 15, 2023

The current instructions tell us to use vcbuild.bat, which is a Microsoft batch file. I don't think this will run under bash, will it?

@huseyinacacak-janea
Copy link
Contributor

The node tests need to test creating links. As your user doesn't have permission to create symbolic links, you get an EPERM error. Please follow the instructions below to make sure you have the right to create symbolic links with your user.

  1. Find the configuration location stated here.
  2. Click on Add User or Group
  3. Click on Advanced
  4. Click on Find Now
  5. Search your user in the list and click on Ok
  6. After adding your user, you may need to reboot your computer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
test Issues and PRs related to the tests. windows Issues and PRs related to the Windows platform.
Projects
None yet
Development

No branches or pull requests

6 participants