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

Question: Using nvm, how does process.execPath returns iojs when initiated with 'node' on Travis-CI? #661

Closed
am11 opened this issue Feb 14, 2015 · 2 comments
Labels
io.js This relates to https://iojs.org/ non-issue / invalid This isn't relevant to nvm, or turned out to be something unrelated.

Comments

@am11
Copy link

am11 commented Feb 14, 2015

Travis-CI (which uses nvm) possesses a peculiar, but interesting behavior with iojs job: if you run node <command>, it pipes it to iojs. To wit:

# with iojs (v1.2.0) job
iojs -p process.execPath
# will return: /home/travis/.nvm/versions/io.js/v1.2.0/bin/iojs
node -p process.execPath
# will also print the same! instead of /whatever/p/a/t/h/node

How does this happen? If it is due to nvm, I would really appreciate could you point to the location of responsible code.

Thanks in anticipation.

PS: I am trying to explain it here: appveyor/ci#139.

@ljharb
Copy link
Member

ljharb commented Feb 14, 2015

This is due to io.js itself - node is just a symlink to iojs. This will happen with any io.js install, installed via any method.

@ljharb ljharb closed this as completed Feb 14, 2015
@am11
Copy link
Author

am11 commented Feb 14, 2015

@ljharb, thanks for your answer. 👍

@ljharb ljharb added io.js This relates to https://iojs.org/ non-issue / invalid This isn't relevant to nvm, or turned out to be something unrelated. labels Oct 11, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
io.js This relates to https://iojs.org/ non-issue / invalid This isn't relevant to nvm, or turned out to be something unrelated.
Projects
None yet
Development

No branches or pull requests

2 participants