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

TypeError: process.getuid is not a function #963

Closed
rseeberg opened this issue Jun 17, 2019 · 1 comment
Closed

TypeError: process.getuid is not a function #963

rseeberg opened this issue Jun 17, 2019 · 1 comment

Comments

@rseeberg
Copy link

Describe the bug

When building on a windows machine, the build fails due to recent changes to the bin/cli.js
error is following:

TypeError: process.getuid is not a function
C:\Projects.....\node_modules\webpack-cli\bin\cli.js:356
if (!e && fileOwnerId === process.getuid()) utimesSync(openCollectivePath, now, now);'

What is the current behavior?

It relies on process.getuid which is not available on windows.

To Reproduce

Should be enough to run a build on a windows system.

Expected behavior

Expecting to work on windows

Additional context

Should probably revert the change done in comit
de41351#diff-22d5d2b57c69d2e1ac054c4d0f744ff1

Alternatively, find a way to not rely on a non windows available function.
Documentation from node
https://nodejs.org/api/process.html#process_process_getuid

@rseeberg
Copy link
Author

rseeberg commented Jun 17, 2019

This is duplicate of #962

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

1 participant