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

Add $NVM_NODE_PREFIX to override 'node-' prefixes #610

Closed
wants to merge 1 commit into from
Closed

Add $NVM_NODE_PREFIX to override 'node-' prefixes #610

wants to merge 1 commit into from

Conversation

kriswill
Copy link

ability to replace tar file name prefixes with 'iojs-' when reading
dist listing from https://iojs.org/dist/

example in .bash_profile:

if [ -f ~/.nvm/nvm.sh ]; then
  source ~/.nvm/nvm.sh
  export NVM_NODEJS_ORG_MIRROR="https://iojs.org/dist/"
  export NVM_NODE_PREFIX="iojs"
fi

you can then:

→ nvm ls-remote
      v1.0.0
      v1.0.1

→ nvm install v1.0.1
... long compile time ...

→ type node
node is /Users/kris/.nvm/versions/node/v1.0.1/bin/node

→ node -p process.versions
{ http_parser: '2.3',
  node: '1.0.1',
  v8: '3.31.74.1',
  uv: '1.2.0',
  zlib: '1.2.8',
  ares: '1.10.0-DEV',
  modules: '42',
  openssl: '1.0.1k' }

ability to replace tar file name prefixes with 'iojs-' when reading
dist listing from https://iojs.org/dist/

example in .bash_profile:

if [ -f ~/.nvm/nvm.sh ]; then
  source ~/.nvm/nvm.sh
  export NVM_NODEJS_ORG_MIRROR="https://iojs.org/dist/"
  export NVM_NODE_PREFIX="iojs"
fi

you can then:

→ nvm ls-remote
      v1.0.0
      v1.0.1

→ nvm install v1.0.1
... long compile time ...

→ type node
node is /Users/kris/.nvm/versions/node/v1.0.1/bin/node

→ node -p process.versions
{ http_parser: '2.3',
  node: '1.0.1',
  v8: '3.31.74.1',
  uv: '1.2.0',
  zlib: '1.2.8',
  ares: '1.10.0-DEV',
  modules: '42',
  openssl: '1.0.1k' }
@ljharb
Copy link
Member

ljharb commented Jan 15, 2015

I'm already working on iojs support, and this won't be the way I do it. There's far more to compatibility than reading from iojs.org - including that node has SHA-1 sums, and io.js has SHA-256 sums.

Thanks for your contribution though!

See #590.

@ljharb ljharb closed this Jan 15, 2015
@kriswill
Copy link
Author

Thanks @ljharb. I know it's a lame attempt, I tried to keep the scope small, since I figured there was more you wanted to do with it.

@ljharb ljharb added the io.js This relates to https://iojs.org/ label Jan 16, 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/
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants