Following tutorial, yarn create redwood-app on macOS errors (when using N rather than NVM)
See original GitHub issueI’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:
- Created 4 years ago
- Reactions:1
- Comments:9 (4 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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 toyarn 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.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 localnvm
instance.I
brew uninstall yarn
and then did anpm install -g yarn
in my nvm instance which then made a new yarn in thatnvm
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.