Node: remove --with-shared-libs

There's no guarantee that the version of V8 packaged by Homebrew
is compatible with what the current version of Node expects.

Closes #19686.
node: inline npmrc script