Hello Laverna team,
I had been following the instructions to "Installation from Source" step-by-step, and ran into a "command not found" error when running "bower install" and "gulp build". However, I was able to solve both of them by installing each one globally (see bower solution and gulp solution). I would like someone to verify both answers (I entered the exact commands before performing bower install
and gulp build
).
If both are satisfactory, I would like to request that the documentation for the "Installation from Source" section be updated to reflect the changes mentioned in both solutions.
Yes, Bower and Gulp need to be installed globally.
Okay, great! Now I have another question, @wwebfor and community: I am trying to start this application using npm start
and alternatively node ./server.js
after I run gulp build
, but neither commands appear to work (see image below).
You can start by using gulp
command (without any arguments).
@wwebfor Okay, so I was able to get it to work with using the gulp
command (_I like how it automatically connects me to the server within my browser_ ), however, I am running into an issue with the webpage loading similar to #300. I get the following error message when inspecting the browser:
| Error Message | Code in Question | Line References |
| --- | --- | --- |
| Script error for "markdown-it-imsize", needed by: modules/markdown/libs/markdown-it http://requirejs.orgt/docs/errors.html#scripterror | makeError()
| require.js:168 |
| | newContext/context.onScriptError()
| require.js:1735 |
This does not occur when I navigate to laverna.cc or laverna.cc/nightly/. I'm using the current version if Firefox, 47.0.
When I go to the link provided in the error message, it mentions that "usually... there is a JavaScript syntax error or other executing problem running the script". I'm not sure what this could be since I have not added any additional code to my forked copy.
I'm going to look into this some more and provide an update should I make any progress.
Please, try to install markdown-it-imsize with a command:
bower install
I finally managed to get this to work! That command did not work for me because I needed to provide root access to bower markdown-it-imsize
by running sudo bower install --allow -root
as mentioned in the solution. I think there must have been an issue on my end with how I installed npm/node js, as I am not able to install most packages unless I provide sudo
privileges. I am pretty sure that if I did have root access bower install
would have installed "markdown-it-imsize. I'm probably going to have to fix this at some point. Nevertheless, I'm glad I can finally start playing around with this project now.
It shouldn't require root access.
@wwebfor When I tried entering it as you suggested, this occurred:
1) Bower ACCES Error:
2) So I tried to install it using the sudo
command but I was presented with a message stating that sudo was not needed (like you had mentioned):
3) finally, following the instructions from the SOF solution I mentioned above, I managed to install it using bower install --allow-root
:
Update (7/20/16): See this for reference as well.
Again, I think this might have been something I overlooked on my end when I installed npm and bower. This is my first time using it (bower).
Update (7/21/16): @wwebfor, Thanks for accepting my Pull Request (#509). I feel that all major issues have been resolved now, so this issue can be closed.
Glad to hear ;)