Skip to content

ENOENT: nodejs doesn't work in Ubuntu Docker container #20048

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

Closed
kenorb opened this issue Apr 15, 2018 · 3 comments
Closed

ENOENT: nodejs doesn't work in Ubuntu Docker container #20048

kenorb opened this issue Apr 15, 2018 · 3 comments
Labels
duplicate Issues and PRs that are duplicates of other issues or PRs. module Issues and PRs related to the module subsystem.

Comments

@kenorb
Copy link

kenorb commented Apr 15, 2018

  • Node.js Version: v4.2.6
  • OS: Ubuntu 16.04.4 LTS in Docker container
  • Module (and version) (if relevant): none

Repro steps in Docker:

  1. docker run -it ubuntu:latest
  2. apt-get update
  3. apt-get -y install nodejs
  4. Run: nodejs <(curl -sL https://code.jquery.com/jquery-1.11.1.min.js)
Output:
fs.js:839
  return binding.lstat(pathModule._makeLong(path));
                 ^

Error: ENOENT: no such file or directory, lstat '/proc/360/fd/pipe:[41660]'
    at Error (native)
    at Object.fs.lstatSync (fs.js:839:18)
    at Object.realpathSync (fs.js:1443:21)
    at toRealPath (module.js:112:13)
    at Function.Module._findPath (module.js:152:20)
    at Function.Module._resolveFilename (module.js:324:25)
    at Function.Module._load (module.js:277:25)
    at Function.Module.runMain (module.js:442:10)
    at startup (node.js:136:18)
    at node.js:966:3
@kenorb
Copy link
Author

kenorb commented Apr 15, 2018

Same using node v8.11.1:

root@c8120adcacd0:/# node --version
v8.11.1
root@c8120adcacd0:/# node <(curl -sL https://code.jquery.com/jquery-1.11.1.min.js)
fs.js:646
  return binding.open(pathModule._makeLong(path), stringToFlags(flags), mode);
                 ^
Error: ENOENT: no such file or directory, open '/proc/13/fd/pipe:[326169]'
    at Object.fs.openSync (fs.js:646:18)
    at Object.fs.readFileSync (fs.js:551:33)
    at Object.Module._extensions..js (module.js:662:20)
    at Module.load (module.js:565:32)
    at tryModuleLoad (module.js:505:12)
    at Function.Module._load (module.js:497:3)
    at Function.Module.runMain (module.js:693:10)
    at startup (bootstrap_node.js:188:16)
    at bootstrap_node.js:609:3

@kenorb
Copy link
Author

kenorb commented Apr 15, 2018

Ok, this works with v8.11.1:

node < <(curl -sL https://code.jquery.com/jquery-1.11.1.min.js)

or:

curl -sL https://code.jquery.com/jquery-1.11.1.min.js | node

@kenorb kenorb closed this as completed Apr 15, 2018
@bnoordhuis
Copy link
Member

For posterity: this issue is essentially the same as #18255.

@bnoordhuis bnoordhuis added duplicate Issues and PRs that are duplicates of other issues or PRs. module Issues and PRs related to the module subsystem. labels Apr 15, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate Issues and PRs that are duplicates of other issues or PRs. module Issues and PRs related to the module subsystem.
Projects
None yet
Development

No branches or pull requests

2 participants