-
Notifications
You must be signed in to change notification settings - Fork 12
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
[Windows] Can't install and run the app without errors on Windows #43
Comments
Hmm I reinstalled Python before doing anything, just in case and that actually fixed the Python error. New critical red text error now though where it couldn't load the Visual C++ component VCBuild.exe, though it has steps to fix by installed the .NET Framework 2.0 SDK and install Microsoft Visual Studio 2005. Need to check if I have it or not |
Actually, according to this, I just need to install the windows build tools so I'm trying that first. Have to run it in PowerShell as Admin, which is different from the regular command prompt. Running Edit: Apparently this can take up to 8-9 hours to install. Guess I'm leaving my computer on overnight. |
Left the installer running for like 10-11 hours and it seems like it just froze. Hard to tell because there's no indication that it's progressing or loading or anything. From what I've read, that installer can fail and not show any error messages or notify you of anything. I shut it down anyway and restarted my computer, just in case I have some process messing something up. Haven't tried running The other way to install build tools is to manually download the visual studio 2015 c++ build tools installer executable and then run that. Note that it can add something like 20-50gb of files to all of your drives from what I've read. It was quoting me around 4 gb which I was kind of iffy about because I have my system files partition as a separate drive that doesn't have a lot of free space. Instead I just tried an npm start again to see if anything had changed. Same critical red highlighted error: Decided to ignore that for now and just see if there's other errors I can fix. The other important seeming errors were warnings about needing a peer of react 15/16 for various components but none being installed. More importantly, it was saying stuff like I figured maybe I can just manually install that, so I did: Then I tried running the app again with Surprisingly, it compiled successfully and made the page available in localhost. So I can see the actual web app now! Some kind of progress at least. Just to summarize what I've done so far:
I'm not sure if everything is working right though, since I'm still missing some dependencies. I'll check with the project lead. Might be enough for front end work though. |
wow did not think would be this difficult to get running. Frontend looks to be working but still need to run the backend command |
Found this helpful looking guide. I'm still reading through it, but it looks useful for the future and fairly recently published: Haven't verified if it works, but looks like an easy process that should work. I'm kind of abbreviating the relevant looking steps here:
Edit: Also some useful info about disk space requirements for the C compiler which seems to be the important part needed for node-gyp (necessary for many extensions that need building):
|
So previously I was unable to get So if the latest version won't install for you, try After doing that, I ran Running Finally, running |
If you want the TLDR on how I got the app to install without errors on Windows 8, you'll want to do the following (run PowerShell as an admin when using the console for the commands): How to Install
If you encounter issues, you may have to restart your computer or run commands a second time. I'd also verify packages are actually installed by using |
Previous post gets installation to work, but additional steps are necessary to get the app to run. Remember to do this in PowerShell with admin privileges: How to Run
A tab should open automatically in your browser with the url TroubleshootingIf you encounter an error running nodemon and close your command window to try again, sometimes the node process won't be terminated and you'll get an error if you try to start nodemon again. Just go to task manager and kill any node.js processes. If you get an error about a missing module, you might have to update the project dependencies again, especially if you haven't kept the project directory up to date. Just do an To quit running the app, hit Ctrl + C in your PowerShell window and it'll ask you if you want to terminate the batch job. Type Y and hit enter, and it'll stop the running process. You can do that in both windows to stop the front and back end or you can just close the windows. |
Should probably update the readme with this info. |
Can you make a branch and update the readme then make a PR for it?
Cheers,
- Joseph
…On Thu, Mar 28, 2019 at 03:36 Sunny Mui ***@***.***> wrote:
Should probably update the readme with this info.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#43 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AD1442tbMdmlkOhnWrGkKfxaxuGmaI8dks5vbJsTgaJpZM4bI6rW>
.
|
Windows users have been able to get running thank you Sunny!! |
Tried to run and install the app on Windows 8 and it runs into several errors when doing
npm i
to install all the dependencies.Some of the errors were resolved by updating my node/npm version. My npm was at 2.15.5 and node was v4.4.5 which is way behind current versions of npm 6.4 and node 10.15.1.
Easiest way for Windows people to update is to just download the latest install file from the node website and reinstall their node/npm. It'll reinstall everything to the latest version.
Still getting some errors when installing dependencies, but it does seem to get further. Looks like the next error to resolve is that it can't find Python, so I think I have to reset my Python env variable. I do have Python installed, though I did have to install it myself on Windows.
Another interesting error is a failure at the bcrypt install script with a message that it's probably not a problem with npm. Have to check it out more.
I'm attaching the complete debug log here.
2019-02-22T04_37_22_878Z-debug.log
The text was updated successfully, but these errors were encountered: