-
Notifications
You must be signed in to change notification settings - Fork 108
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
yarn command doesn't work on Windows 10: Here's a fix. #21
Comments
Nice catch! My windows 10 must have had all of this stuff already installed. I'll think about how to integrate this with the CLI so developers don't have to spend time tracking this down. |
I did the above and am still having issues, unfortunately. Phili@DESKTOP-5UPUI0N MINGW64 /d/GitHub/vscode-fundamentals (master) |
This is what happens when I do NPM Install Phili@DESKTOP-5UPUI0N MINGW64 /d/GitHub/vscode-fundamentals (master)
Downloading binary from https://github.com/sass/node-sass/releases/download/v4.5.3/win32-x64-59_binding.node HTTP error 404 Not Found Hint: If github.com is not accessible in your location
or configure npm proxy via
node-pre-gyp ERR! Tried to download(403): https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v3.1.9/node-v59-win32-x64.tar.gz npm ERR! code ELIFECYCLE npm ERR! A complete log of this run can be found in: Phili@DESKTOP-5UPUI0N MINGW64 /d/GitHub/vscode-fundamentals (master) |
Fixed it by installing python in windows https://www.python.org/downloads/ Do the custom option and check everything. Then increase the path size at the end. Boom works! |
Little update to twwilliams comment on 3 Nov 2017 for Window 10 x64 users.
Now you should be able to run |
Which version did you install? |
Works for me either. Big thumbs up. |
The below is the log from the PowerShell admin user execution. PS C:\Users\4000> npm -v PS C:\Users\4000> npm install -g windows-build-tools
C:\Users\4000\AppData\Roaming\npm\node_modules\windows-build-tools\node_modules\in-gfw\lib\os.js:53 Error: spawnSync powershell.exe ENOENT npm ERR! A complete log of this run can be found in: |
Thank you very much. This is very helpful |
Yarn fails with an MSBuild error: MSB4132. It is looking for v2.0 of the build tools but only v4.0 is found.
To solve this problem, you need to do a couple of things:
npm install -g windows-build-tools
. You will need to do this from an elevated prompt. Some Microsoft documentation on the issue says to do it from an elevated PowerShell prompt. This will take a while, so be patient.yarn config set msvs_version 2015
. The npm command above sets it for npm but yarn needs it as well.Once I did these things, I was able to complete the
yarn
command, runnpm start
successfully, and then see the Frontend Grocer site at http://localhost:3000/The text was updated successfully, but these errors were encountered: