Hello!
I have a React Native application that I recently updated to version 75. I configured everything locally and was able to compile it for both Android and iOS without issues.
The “Run yarn command” step, which used to pass without any problems, started returning this error:
+------------------------------------------------------------------------------+
| (3) Run yarn command |
+------------------------------------------------------------------------------+
| id: yarn |
| version: 0.1.3 |
| collection: https://github.com/bitrise-io/bitrise-steplib.git |
| toolkit: go |
| time: 2024-10-14T17:04:30Z |
+------------------------------------------------------------------------------+
| |
* [OK] Step dependency (node) installed, available.
* [OK] Step dependency (yarn) installed, available.
Config:
- workdir: /Users/vagrant/git
- command: install
- args: <unset>
- cache_local_deps: false
- verbose_log: false
Yarn not installed. Installing...
$ npm "install" "--global" "yarn"
Yarn version:
$ yarn "--version"
node:internal/modules/cjs/loader:1080
throw err;
^
Error: Cannot find module '/Users/vagrant/git/.yarn/releases/yarn-3.6.4.cjs'
at Module._resolveFilename (node:internal/modules/cjs/loader:1077:15)
at Module._load (node:internal/modules/cjs/loader:922:27)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
at node:internal/main/run_main_module:23:47 {
code: 'MODULE_NOT_FOUND',
requireStack: []
}
Node.js v18.17.0
Install dependencies: yarn version command failed: exit status 1
Install dependencies: yarn version command failed: exit status 1
| |
+---+---------------------------------------------------------------+----------+
| x | Run yarn command (Failed) | 2.55 sec |
+---+---------------------------------------------------------------+----------+
| Issue tracker: https://github.com/bitrise-community/steps-yarn/issues |
| Source: https://github.com/bitrise-community/steps-yarn |
+---+---------------------------------------------------------------+----------+
I have already tried downloading via script, but the same error keeps happening. Can someone help me?