-
Notifications
You must be signed in to change notification settings - Fork 72
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
nodejs can't work #67
Comments
Probably |
Hi @dex4er, can you expand what's missing for I was able to run internal/modules/cjs/loader.js:983
throw err;
^
Error: Cannot find module '/usr/local/bin/npm'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:980:15)
at Function.Module._load (internal/modules/cjs/loader.js:862:27)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:74:12)
at internal/main/run_main_module.js:18:47 {
code: 'MODULE_NOT_FOUND',
requireStack: []
} |
For others that are reading this, I found out that nodejs uses libuv, which in turns usually uses glibc wrappers for syscalls. However, a recent change from last year made it start using So if you want to run nodejs in fakechroot you have three options:
Here's a gist to the git patch I applied, as well as stacktraces on how I determined the fix: https://gist.github.com/hinshun/ba1a8a7d32e8e974dcd60cbce64438d6 |
I also commented on the libuv issue but, while libuv could work around this limitation in fakechroot, it's IMO better to teach it about Libuv also uses
( |
No description provided.
The text was updated successfully, but these errors were encountered: