there is some problem with your npm / yarn paths. if you type which expo you can see where it is installed to. then try installing some other package that you haven’t installed globally before, like serve maybe, with yarn global add serve. next run which serve and it’ll probably not be the same place. i suspect you recently installed node or yarn differently than how you did in the past.
edit: my bad you are using windows so you will have to use whatever the windows equivalent of which is
I suspect you have version 3.4.1 installed by npm in your PATH and the version that is being installed by yarn is not in your PATH (or is later in your PATH than the npm-installed one) so PowerShell can’t find it.
I suggest you uninstall the version that was likely installed by npm:
You ought to be able to run the following script to see where there are expo binaries in your PATH. I haven’t tried it on Windows, but I believe it should work correctly there too:
const path = require("path");
const fs = require("fs");
const dirs = process.env.PATH.split(path.delimiter);
for (const dir of dirs) {
for (const ext of ["", ".exe"]) {
const expoPath = path.resolve(dir, `expo${ext}`);
try {
if (fs.existsSync(expoPath)) {
console.log(`Found: ${expoPath}`);
}
} catch (err) {
console.error(err);
}
}
}
Save the above to a file called expoPath.js and then run: