question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Following tutorial, yarn create redwood-app on macOS errors (when using N rather than NVM)

See original GitHub issue

I’m running macOS 10.15.3 (19D76), following the tutorial, when I run

yarn create redwood-app ./redwoodblog

It fails because of node engine incompatibilities (full output below). I tried yarn’s --ignore-engines flag but it doesn’t seem to work for create.

One thing, I’m using n not nvm to manage my node versions, and tried some other node versions, but they all had issues. So maybe it’s n related? Maybe notably I can successfully install the example blog repo by cloning it down and running yarn.

Running with:

▶ node --version
v12.16.1
▶ yarn --version
1.19.2

Full output:

▶ yarn create redwood-app ./redwoodblog
yarn create v1.19.2
[1/4] 🔍  Resolving packages...
[2/4] 🚚  Fetching packages...
info @expo/traveling-fastlane-linux@1.13.1: The platform "darwin" is incompatible with this module.
info "@expo/traveling-fastlane-linux@1.13.1" is an optional dependency and failed compatibility check. Excluding it from installation.
info @expo/ngrok-bin-darwin-ia32@2.2.8: The CPU architecture "x64" is incompatible with this module.
info "@expo/ngrok-bin-darwin-ia32@2.2.8" is an optional dependency and failed compatibility check. Excluding it from installation.
info @expo/ngrok-bin-freebsd-ia32@2.2.8: The platform "darwin" is incompatible with this module.
info "@expo/ngrok-bin-freebsd-ia32@2.2.8" is an optional dependency and failed compatibility check. Excluding it from installation.
info @expo/ngrok-bin-freebsd-ia32@2.2.8: The CPU architecture "x64" is incompatible with this module.
info @expo/ngrok-bin-freebsd-x64@2.2.8: The platform "darwin" is incompatible with this module.
info "@expo/ngrok-bin-freebsd-x64@2.2.8" is an optional dependency and failed compatibility check. Excluding it from installation.
info @expo/ngrok-bin-linux-arm@2.2.8: The platform "darwin" is incompatible with this module.
info "@expo/ngrok-bin-linux-arm@2.2.8" is an optional dependency and failed compatibility check. Excluding it from installation.
info @expo/ngrok-bin-linux-arm@2.2.8: The CPU architecture "x64" is incompatible with this module.
info @expo/ngrok-bin-linux-arm64@2.2.8: The platform "darwin" is incompatible with this module.
info "@expo/ngrok-bin-linux-arm64@2.2.8" is an optional dependency and failed compatibility check. Excluding it from installation.
info @expo/ngrok-bin-linux-arm64@2.2.8: The CPU architecture "x64" is incompatible with this module.
info @expo/ngrok-bin-linux-ia32@2.2.8: The platform "darwin" is incompatible with this module.
info "@expo/ngrok-bin-linux-ia32@2.2.8" is an optional dependency and failed compatibility check. Excluding it from installation.
info @expo/ngrok-bin-linux-ia32@2.2.8: The CPU architecture "x64" is incompatible with this module.
info @expo/ngrok-bin-linux-x64@2.2.8: The platform "darwin" is incompatible with this module.
info "@expo/ngrok-bin-linux-x64@2.2.8" is an optional dependency and failed compatibility check. Excluding it from installation.
info @expo/ngrok-bin-sunos-x64@2.2.8: The platform "darwin" is incompatible with this module.
info "@expo/ngrok-bin-sunos-x64@2.2.8" is an optional dependency and failed compatibility check. Excluding it from installation.
info @expo/ngrok-bin-win32-ia32@2.2.8-beta.1: The platform "darwin" is incompatible with this module.
info "@expo/ngrok-bin-win32-ia32@2.2.8-beta.1" is an optional dependency and failed compatibility check. Excluding it from installation.
info @expo/ngrok-bin-win32-ia32@2.2.8-beta.1: The CPU architecture "x64" is incompatible with this module.
info @expo/ngrok-bin-win32-x64@2.2.8-beta.1: The platform "darwin" is incompatible with this module.
info "@expo/ngrok-bin-win32-x64@2.2.8-beta.1" is an optional dependency and failed compatibility check. Excluding it from installation.
error upath@1.0.4: The engine "node" is incompatible with this module. Expected version ">=4 <=9". Got "12.16.1"
error Found incompatible module.
info Visit https://yarnpkg.com/en/docs/cli/create for documentation about this command.

Thanks!

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
fnkycommented, Mar 21, 2020

Just to chime in; the cause of the errors is because there are global modules installed which are incompatible with your current node version. Running yarn create is equivalent to yarn global add, which means that it validates the globally installed packages.

For example; use an old version of node and install a module that targets older node versions and then switch to a newer version and do a global install. This will fail due to incompatible engines, specified by the module.

The issue itself is that yarn create accept arguments like --ignore-engines to have yarn ignore engines as part of the validation.

2reactions
elebummcommented, Mar 12, 2020

Thanks for the reply @thedavidprice.

I truly believe the issue came down to having multiple versions of yarn. Running a which yarn showed that the yarn was running in /usr/local/bin/yarn which meant it wasn’t running in my local nvm instance.

I brew uninstall yarn and then did a npm install -g yarn in my nvm instance which then made a new yarn in that nvm instance.

I still found that when I did a yarn create... it gave me the same error, but this time I was able to ignore engines using the command in my previous answer. Perhaps a caching issue on mac and yarn?

Glad I got it working though. Hopefully @zischwartz this answer helps you too.

Going through the tutorial and it’s working great. Loving redwood so far.

Cheers David.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Installation Error: multiple versions of yarn, or using version ...
Following tutorial, yarn create redwood-app on macOS errors (when using N rather than NVM). opened 10:43PM - 11 Mar 20 UTC.
Read more >
nvm install node fails to install on macOS Big Sur M1 Chip
If you have installed nvm using homebrew and are trying to install the node using command nvm install <some_version> , you will face...
Read more >
How to Install NVM and Node on macOS M1 Silicon in 2022
Once there, run the command nvm and you shouldn't see any errors. I hope this was a helpful, clear tutorial on how to...
Read more >
4 ways to update to the latest Node.js version on a Mac
NAVIGATION Nvm N Homebrew MacPorts Development is picking pace, and Node.js is shipping out a new version frequently. It is nice to have...
Read more >
Node.js Installation on MacOS – Index - Wilson Mar
A: Brew install node WITHOUT npm, then install .npm-packages with no nvm. This is what I recommend after hassling with yarn installation. B:...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found