installer icon indicating copy to clipboard operation
installer copied to clipboard

Consider using the tarball instead of the pkg installer for OS X

Open evanlucas opened this issue 8 years ago • 5 comments

We have had a lot of issues with the pkg installer (especially when upgrading from v4 -> a version that contains npm 3) not fully replacing npm.

evanlucas avatar Jul 01 '16 11:07 evanlucas

Yes please.

Fishrock123 avatar Jul 01 '16 11:07 Fishrock123

It takes considerably longer to compile the tarball and it requires that the dev tools and compiler are installed.

We should detect the npm issue and write some code that fixes it :)

mikeal avatar Jul 05 '16 19:07 mikeal

I was suggesting using the pre-compiled tarball for OS X.

We could use pkgutil and installer to determine which files to remove prior to installation, but that seems a bit messier to me

evanlucas avatar Jul 05 '16 19:07 evanlucas

+1 for pre compiled tarball... these can be grabbed just as easily as the pkg util... We will still have the issues from npm 2 -> npm 3 if we don't rimraf /usr/local/lib/node_modules/npm on install

An alternative would be to install using a folder schema similar to nvm, that way we never touch /usr/local

MylesBorins avatar Jul 05 '16 19:07 MylesBorins

I ran into a problem where the 10.16.0 installer wouldn't install on my mac. Looking in the source of the installer, I found out that it just runs Apple's utility installer like this:

 installer -dumplog -pkg node-v10.16.0.pkg -target /

(I added -dumplog).

The tarball and/or pkg files can be found here:

 https://nodejs.org/dist/v10.16.0/

soegaard avatar Jun 11 '19 16:06 soegaard