Bitrise Build Issue Report template
Description of the issue
While trying to install node dependencies for recent projects (such as React Native 0.68). We get the following error during installation:
error react-native@0.68.1: The engine "node" is incompatible with this module. Expected version ">=14". Got "12.22.12"
error Found incompatible module.
The Ubuntu stacks are currently still shipped with Node v12 although that version has just been dropped and Node v16 is now the new LTS version of Node that should be used and installed on stacks.
Environment:
The issue occurs for Ubuntu 20.04 stacks when running yarn install on recent projects.
For example yarn v0.1.2
Reproducibility
- Does a “Rebuild” help? (You can trigger a rebuild from the Build’s page, by clicking the “Rebuild” button in the top right corner of a finished build) : NO
-
Does a rebuild without caches help? (You can remove the
Cache:Pull
andCache:Push
steps temporarily to not to use the cache, or you can delete all the caches on theSettings
tab of the app. : NO - Does the issue happen sporadically, or every time? : Every time
- Does upgrading the build Step to the latest version help? :NO
- When did the issue start? : After upgrading to React Native 0.68 (about a week ago)
Build log
+------------------------------------------------------------------------------+
| (4) yarn@0 |
+------------------------------------------------------------------------------+
| id: yarn |
| version: 0.1.2 |
| collection: https://github.com/bitrise-io/bitrise-steplib.git |
| toolkit: go |
| time: 2022-05-05T11:44:07Z |
+------------------------------------------------------------------------------+
| |
Config:
- workdir: /[REDACTED]/src
- command: install
- args: <unset>
- cache_local_deps: true
- verbose_log: false
Yarn is already installed at: /usr/bin/yarn
Yarn version:
$ yarn "--version"
1.22.18
$ yarn "install"
yarn install v1.22.18
[1/4] Resolving packages...
[2/4] Fetching packages...
error react-native@0.68.1: The engine "node" is incompatible with this module. Expected version ">=14". Got "12.22.12"
error Found incompatible module.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
Run: provided yarn command failed: exit status 1
| |
+---+---------------------------------------------------------------+----------+
| x | yarn@0 (exit code: 1) | 23.17 sec|
+---+---------------------------------------------------------------+----------+
| Issue tracker: https://github.com/bitrise-community/steps-yarn/issues |
| Source: https://github.com/bitrise-community/steps-yarn |
+---+---------------------------------------------------------------+----------+