Skip to content

script/setup fails with ./script/bootstrap: line 45: yarn: command not found even if yarn is installed #2696

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
hamirmahal opened this issue Jan 19, 2025 · 2 comments

Comments

@hamirmahal
Copy link

script/setup fails with ./script/bootstrap: line 45: yarn: command not found even if yarn is installed.

@hamirmahal
Copy link
Author

main ~/os-webview 0 $   script/setup 
==> Setting correct node version (see ./.nvmrc) ... OK
==> Installing JavaScript Packages ... 
./script/bootstrap: line 45: yarn: command not found
script/setup: ERROR: could not run [yarn --prefer-offline]

main ~/os-webview 112 $  yarn -v
1.22.22

main ~/os-webview 0 $   node -v
v20.9.0

main ~/os-webview 0 $  cat ./.nvmrc 
v18.19.0

main ~/os-webview 0 $  nvm use v18
Now using node v18.20.3 (npm v10.7.0)

main ~/os-webview 0 $  yarn -v
1.22.22

main ~/os-webview 0 $  node -v
v18.20.3

main ~/os-webview 0 $  script/setup 
==> Setting correct node version (see ./.nvmrc) ... OK
==> Installing JavaScript Packages ... 
./script/bootstrap: line 45: yarn: command not found
script/setup: ERROR: could not run [yarn --prefer-offline]

@hamirmahal
Copy link
Author

main ~/os-webview 0 $  ls
Brewfile         package.json  src                  test               yarn.lock
CONTRIBUTING.md  README.md     stats.json           tsconfig.json
__mocks__        script        stylelint.config.js  webpack.config.js

main ~/os-webview 0 $  command -v yarn
/home/hamir/.nvm/versions/node/v18.20.3/bin/yarn

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant