Brew install node --without-npm

(mystikoDesign) #1

node v12.1 & npm v6.9.0 appear incompatible. after deleting & attempting to reinstall everything & start over with:
brew install node --without-npm

produces the error:
Error: invalid option: --without-npm

macOS
node 12.1.1 (no longer installed, unable to install)
npm 6.9.0 (no longer installed, unable to install)

(Sean Molenaar) #2

Options have been removed from formula last year. brew install node is the way to get node and you’ll get npm with that. If you don’t want npm you could maintain a seperate version of the node formula for yourself.

(mystikoDesign) #3

Thanks for your reply. I have subsequently run brew install node, & have node 12.1.1 & npm 6.9.0 again.

Still too new at this, trying to maintain npm as a seperate package. Not sure how to “maintain a seperate version of the node formula”

As a seperate issue, what started it all was running npm install on the development folder, & getting a node-gyp error when the install reaches ttf2woff2@2.0.3. This, after the update to node 12.1.1.

(Sean Molenaar) #4

Not sure why you’d want to maintain npm as a seperate package, it’s part of the node install afaik. As for the npm install failures that’s more something for the node forums iyam.