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

Setup issues #2

Closed
jurgenhaas opened this issue Oct 31, 2020 · 3 comments
Closed

Setup issues #2

jurgenhaas opened this issue Oct 31, 2020 · 3 comments

Comments

@jurgenhaas
Copy link

This is an awesome project, thanks for making this available. I've tried this today on Ubuntu 18.04 and ran into a couple of smaller issues which I'd like to report so that you can probably fix them for the future:

  • the prerequisite yarn is not documented
  • global node packages gulp-connect and yargs don't get installed automatically, I had to install them manually
  • when running mdshow serve, I'm getting this error:
cd /home/jurgenhaas/.config/mdshow/reveal.js && yarn gulp -f mdshow-gulp.js --port=3000 --slides="slides.md" --root="/home/jurgenhaas/Downloads/mdshow/test1/.build"
yarn run v1.22.5
error Command "gulp" not found.

When I look into /home/jurgenhaas/.config/mdshow/reveal.js/package.json there is no script called gulp, so when I instead manually call yarn build -f mdshow-gulp.js --port=3000 --slides="slides.md" --root="/home/jurgenhaas/Downloads/mdshow/test1/.build", then it works just fine.

@qx-775
Copy link

qx-775 commented Nov 23, 2020

Attempt 2 to try to run mdshow.
I can only use sudo ./mdshow serve to run the webserver on port 3000
I probably should not use sudo though..
After that i see Cannot GET / on the webpage.
The console logs the following:

127.0.0.1/:1 Refused to load the script 'http://127.0.0.1:35729/livereload.js?snipver=1' because it violates the following Content Security Policy directive: "default-src 'none'". Note that 'script-src-elem' was not explicitly set, so 'default-src' is used as a fallback.
I tried adding <meta http-equiv="Content-Security-Policy" content="default-src *; style-src 'self' http://* 'unsafe-inline'; script-src 'self' http://* 'unsafe-inline' 'unsafe-eval'" />

to index.html but still was unsuccessful. What can I do?

@jceb
Copy link
Owner

jceb commented Nov 27, 2020

@qx-775 thanks for reporting the issue. I'm afraid there's something else broken. You shouldn't need sudo.

@jurgenhaas thank you for the feedback. I'll have a look and correct the documentation/add the dependencies. Feel free to also hand in PRs, I'm happy to accept them.

@jurgenhaas
Copy link
Author

Following my experience in #3 it turned out that using yarn caused a couple of issues and using npm instead, fixed the issue. So I'm closing this one now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants