NPM not working after installing yarn – MacOS Sierra

I was getting the following error when trying to use NPM after installing yarn.

To fix this need to reinstate npm with yarn. Following command will do the trick.

yarn global add npm

Advertisements