Cannot npm install -g @openzeppelin/cli@2.6 on macOS Catalina 10.15.1

Hi @abcoathup.
I finally installed nvm and use it now. And success, I was able to install the @openzeppelin/cli into my global npm store for my nvm node --version 12.13.0.

It also now works with nvm node --version 10.17.0

So the root cause of all evil seems to have been my macOS brew-only node install.

I now have nvm installed with brew and node with nvm. Probably the next best setup would be to clean install nvm (no brew) too.

But it works great for now with brewed nvm.

This was a good guide: https://www.chrisjmendez.com/2018/02/07/install/

HOWEVER: there is a bug I encounter with running oz compile on nvm node -v 12.13.0 ONLY - I do not have the bug on node -v 10.17.0.

See: Oz compile fails with spawnSync /bin/sh ENOBUFS

Thank you!

1 Like