1

I'm on a Mac (High Sierra 10.13.3). I switched from NPM to yarn a few weeks back. Recently, yarn has been giving me issues when attempting to global install various tools and libraries (webpack, etc) saying that "an incompatible module "node" was found. Expected version 6.11.0". I've tried using NVM, but I only get back a response that says "This is not the package you are looking for".

Now, my NPM commands return the following error: "Cannot find module './lib/utils/unsupported.js' ... "

I've also already tried simply reinstalling NPM, Node, and yarn.

tk421
  • 5,288
  • 6
  • 22
  • 32
Connor G Roane
  • 143
  • 2
  • 10

2 Answers2

2

Here are few important links that would help you:

Uninstall yarn: How Do I Uninstall Yarn

Uninstall node and npm: How do I completely uninstall Node.js, and reinstall from beginning (Mac OS X)

I would recommend you to use node and npm with the help of NVM. you can refer link below for same:

https://www.liquidweb.com/kb/how-to-install-node-js-via-nvm-node-version-manager-on-ubuntu-14-04-lts/

Suhas Gavad
  • 1,025
  • 6
  • 12
0

Updating your node.js to the newest version could resolve your issue. And if not try running this:

yarn add prettier --ignore-engines
Fatih
  • 289
  • 2
  • 12