Skip to content
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

'Please use yarn to install dependencies.' when using yarn #93119

Closed
memark opened this issue Mar 20, 2020 · 4 comments
Closed

'Please use yarn to install dependencies.' when using yarn #93119

memark opened this issue Mar 20, 2020 · 4 comments

Comments

@memark
Copy link

memark commented Mar 20, 2020

Trying to install dependencies with yarn, which is installed globally via homebrew.
Yarn works perfectly for other projects.

  • VSCode Version: latest master
  • OS Version: Mac OS 10.15.3

Steps to Reproduce:

  1. clone repo
  2. run yarn
➜ node -v
v10.19.0

➜ yarn -v
1.22.4

➜ yarn
yarn install v1.22.4
$ node build/npm/preinstall.js
*** Please use yarn to install dependencies.

error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
@vscodebot
Copy link

vscodebot bot commented Mar 20, 2020

(Experimental duplicate detection)
Thanks for submitting this issue. Please also check if it is already covered by an existing one, like:

@memark memark changed the title Please use yarn to install dependencies. 'Please use yarn to install dependencies.' when using yarn Mar 20, 2020
@aeschli
Copy link
Contributor

aeschli commented Mar 21, 2020

What's the version of npm?

Can you edit

console.error('\033[1;31m*** Please use yarn to install dependencies.\033[0;0m');

and add a console.log(process.env['npm_execpath'])?

@memark
Copy link
Author

memark commented Mar 21, 2020

➜ npm -v
6.13.4

Added the log statement, it gives
/Users/memark/.yarn/releases/yarn-1.22.4.js

@memark
Copy link
Author

memark commented Mar 21, 2020

Thanks for a quick fix!

@github-actions github-actions bot locked and limited conversation to collaborators May 5, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants