You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have no name!@52545ce360b8$ node-gyp --help
os.js:272
throw new ERR_SYSTEM_ERROR(ctx);
^
SystemError [ERR_SYSTEM_ERROR]: A system error occurred: uv_os_get_passwd returned ENOENT (no such file or directory)
at Object.userInfo (os.js:272:11)
at Object.<anonymous> (/opt/bitnami/node/lib/node_modules/node-gyp/lib/find-python.js:11:76)
at Module._compile (internal/modules/cjs/loader.js:999:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
at Module.load (internal/modules/cjs/loader.js:863:32)
at Function.Module._load (internal/modules/cjs/loader.js:708:14)
at Module.require (internal/modules/cjs/loader.js:887:19)
at require (internal/modules/cjs/helpers.js:74:18)
at Object.<anonymous> (/opt/bitnami/node/lib/node_modules/node-gyp/lib/configure.js:11:18)
at Module._compile (internal/modules/cjs/loader.js:999:30) {
code: 'ERR_SYSTEM_ERROR',
info: {
errno: -2,
code: 'ENOENT',
message: 'no such file or directory',
syscall: 'uv_os_get_passwd'
},
errno: [Getter/Setter],
syscall: [Getter/Setter]
}
Python is in the path so a good option could be to add a fallback or not return an error for the line
@beltran-rubo I have a fix for this on a local branch. Having gotten this a little bit wrong the first time (as proved by your bug report), I am trying very hard to arrive at a design that is rock solid and with good code patterns.
That said, the simplest fix would be for node-gyp to not attempt os.userInfo() or to only attempt it in a try {} block.
Once I am happy with the design (I think that can be today) I will post it as a PR. But if posting it right away as a Work-In-Progress PR would be helpful, I can do that as well.
Activity
DeeDeeG commentedon Apr 12, 2021
@beltran-rubo I have a fix for this on a local branch. Having gotten this a little bit wrong the first time (as proved by your bug report), I am trying very hard to arrive at a design that is rock solid and with good code patterns.
That said, the simplest fix would be for
node-gypto not attemptos.userInfo()or to only attempt it in atry {}block.Once I am happy with the design (I think that can be today) I will post it as a PR. But if posting it right away as a Work-In-Progress PR would be helpful, I can do that as well.
DeeDeeG commentedon Apr 12, 2021
@beltran-rubo here is the Pull Request with my proposed fix: #2375
beltran-rubo commentedon Apr 13, 2021
Awesome thanks!