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

nvm should not use "master" branch #444

Closed
ljharb opened this issue Sep 9, 2015 · 7 comments
Closed

nvm should not use "master" branch #444

ljharb opened this issue Sep 9, 2015 · 7 comments

Comments

@ljharb
Copy link
Member

ljharb commented Sep 9, 2015

Per the travis setup line here:

- rm -rf ~/.nvm && git clone https://github.com/creationix/nvm.git ~/.nvm && source ~/.nvm/nvm.sh && nvm install $TRAVIS_NODE_VERSION

This will use the "master" branch of nvm, which will not necessarily work. Please use the latest git tag instead - either by using git tag with config tag.sort set to version:refname, or, you could just hardcode the nvm version.

@wadey
Copy link

wadey commented Sep 9, 2015

I fixed this in my repo by adding the following to the nvm setup pipeline:

(cd ~/.nvm && git checkout `git describe --abbrev=0 --tags`)

See here: https://github.com/wadey/node-microtime/blob/684254eb0ebc90203c95987b3d6981fd67fe58b5/.travis.yml#L22

This is the method recommended by nvm for manual install: https://github.com/creationix/nvm#manual-install

@kkoopa
Copy link
Collaborator

kkoopa commented Sep 9, 2015

Thanks. Waiting on AppVeyor to get Node 4 working.
#442

@kkoopa kkoopa closed this as completed Sep 9, 2015
@mgol
Copy link

mgol commented Sep 9, 2015

Thanks. Waiting on AppVeyor to get Node 4 working.
#442

AppVeyor has Node 4 since yesterday! :)

@kkoopa
Copy link
Collaborator

kkoopa commented Sep 9, 2015

Apparently not when using Update-NodeJsInstallation (Get-NodeJsLatestBuild $env:nodejs_version). Install-Product node $env:nodejs_version appears to work though.

@mgol
Copy link

mgol commented Sep 9, 2015

I see. The Update-NodeJsInstallation (Get-NodeJsLatestBuild $env:nodejs_version) command is very slow, though so I've been using Install-Product node $env:nodejs_version exclusively for some time.

I've reported it to them at http://help.appveyor.com/discussions/suggestions/810-nodejs-400-is-out

@kkoopa
Copy link
Collaborator

kkoopa commented Sep 9, 2015

IIRC Update-NodeJsInstallation is supposed to install the very latest version, which might be newer than what is installed by Install-Product, but this might not apply anymore. Install-Product seems to work well enough at the moment.

@mgol
Copy link

mgol commented Sep 9, 2015

Yeah, I think they have to explicitly add built images to AppVeyor to make Install-Product work. I just usually open a new "Suggestion" at http://help.appveyor.com when a new major arrives, they usually react quickly to that. ;)

sanemat added a commit to sanemat/node-cross-spawn-async that referenced this issue Sep 9, 2015
http://help.appveyor.com/discussions/suggestions/810-nodejs-400-is-out
`Update-NodeJsInstallation (Get-NodeJsLatestBuild $env:nodejs_version)`
command doesn't work with Node 4 yet.

nodejs/nan#444 (comment)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants