News for hackers. Stuff that matters.
Re:Node v9.4.0 by cridenour on Wednesday January 10, 2018 @12:11PM (#16116692)
It's a shame that updating node via homebrew is such a pain that I probably will skip this version.

Maybe it's just me, but every upgrade corrupts the global node_modules.

Re:Node v9.4.0 by vmware513 on Wednesday January 10, 2018 @01:40PM (#16117609)
Re:Node v9.4.0 by beart on Wednesday January 10, 2018 @12:17PM (#16116757)
I'm not sure how homebrew works but most of the node version managers will keep independent global installation folders for a version of node.

You could try using something like nvm which has a command to migrate your old global modules.

nvm install node --reinstall-packages-from=node

Re:Node v9.4.0 by code-e on Wednesday January 10, 2018 @12:27PM (#16116897)
Are you talking about native modules that need to be rebuilt when the V8 version used by node is also upgraded?
Re:Node v9.4.0 by minxomat on Wednesday January 10, 2018 @12:16PM (#16116755)
Shouldn't nvm (node version manager) work? I rarely install node via any package manger, nvm provides some nice management features.
Re:Node v9.4.0 by apazzolini on Wednesday January 10, 2018 @12:23PM (#16116835)
https://github.com/tj/n is also a good version manager for node.
Re:Node v9.4.0 by miduil on Wednesday January 10, 2018 @12:39PM (#16117013)
--no-check-certificate for something that is intended to install software is unacceptable.

https://github.com/tj/n/pull/475/files

I guess nvm is better, needs some polishing, though (error prone for scripted usage, because of unpredictable exit > 0 behavior.

https://github.com/creationix/nvm

Re:Node v9.4.0 by coding123 on Wednesday January 10, 2018 @12:44PM (#16117062)
I tried nvm and it didn't even install correctly. I tried n just now and it works beautifully! thanks for the ref. Nice that it is from tj.
Re:Node v9.4.0 by zumu on Thursday January 11, 2018 @03:26AM (#16122246)
Why not use a version manager like n or nvm?