-
-
Notifications
You must be signed in to change notification settings - Fork 604
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
problems to start source code on windows #13
Comments
Hey there, I cannot reproduce the windows error (I am currently on Win10 Pro x64 with node v8.9.4 and npm v5.6.0 installed), but from what I see the error is produced by the codemirror indentlist plugin postinstall script. What this script basically does is simply to create an additional file in the plugin directory of the codemirror installation. According to a quick search ELIFECYCLE errors are thrown when there is an error in the script, which would point to two potential cases:
But I've on other occasions also noticed some complains about npm in general, so maybe try to update to npm v5.6.0 and try it again, maybe this will solve the issue. As to your linux error, I cannot reproduce it as well, but only because I don't have a linux machine at hand currently. But the error code 126 from the postinstall-script seems to indicate write permission issues, as pointed to in this thread here. A friend of mine has just tried to run the install scripts on linux (he's using Fedora) and it has worked there. So I think the errors you are experiencing are pertaining to write permissions. Would you mind trying to clone the repository into your default Documents-folder in your Home directory and install without administrator-permissions in the shell? Maybe this will solve the issues. Good luck! |
Hi @nathanlesage, thanks for your quick answer.
You can also have linux on windows. https://en.wikipedia.org/wiki/Windows_Subsystem_for_Linux Linux Log:
Windows Log:
|
Ah, this logging output helps better! I think now we can solve both of your problems!
So indeed somehow the patch command does not work. On windows I try As to your Linux problem, I believe this is because of the Linux subsystem. As the subsystem only implements shell commands and stuff, not the graphical interface (i.e. the X11-server), this means that running a graphical program such as electron is not possible using the subsystem. This is also indicated in your logging output as it references a missing dependency I think you definitely need a Virtual Machine if you like to be running an electron app on your windows machine. You could try VirtualBox, because many people I've talked to mentioned it for running Linux systems on a Windows PC (and vice versa), so it should be a good point to start. Please tell me if it works now! |
Ok build now works and start also but after |
This is just as intended. When Zettlr starts, it needs at least one root directory, and if there hasn't been any, it defaults back to your documents folder. Then it parses the whole directory and reads in all *.txt and *.md files, opens them for read, extracts some information (such as creation date and the first 50 characters) so that it can present to you an initial list of files. Then you can, from within the app, choose a different folder, if you wish to. Could you please provide some error information? |
How can I provide an other root dir at startup? Edit: now I know how to upload screenshots here :D |
… well, that is an interesting error, if even node doesn't know what to do. It shouldn't happen, so I will look into it. But I think it's because of a symlink that Zettlr shouldn't be following. As for now, until it's fixed, you can find the configuration of Zettlr in There, simply replace the JSON variable |
Thanks, now it works. I can now start zettlr from source 😄 |
Good to hear! I'll try to fix the startup error in a next version, though =D |
See for further discussion on these problems issue #14. |
Hi,
I try to run the code on windows but get some errors while execute the command npm install after git clone.
I got the following errores:
My npm and node version are:
node v8.9.4
npm v5.4.2
and some verbose log:
Also in my Linux environment on windows (WSL) I can't start the code with following errors:
Thanks for your help.
The text was updated successfully, but these errors were encountered: