Giter Club home page Giter Club logo

Comments (11)

benperiton avatar benperiton commented on May 21, 2024

When you say "I cannot create a new PDF with My own *.pug" what error(s) do you get?

from relaxed.

chinanf-boy avatar chinanf-boy commented on May 21, 2024

I try the https://github.com/RelaxedJS/ReLaXed#getting-started Demo

❯ relaxed dd.pug
Watching dd.pug and its directory tree.

Processing detected change in /dd.pug...
File load error: file:///***/n/lib/node_modules/relaxedjs/node_modules/mathjax/unpacked/jax/output/SVG/jax.js
File load error: file:///***/n/lib/node_modules/relaxedjs/node_modules/mathjax/unpacked/jax/output/SVG/fonts/TeX/fontdata.js
File load error: file:///***/n/lib/node_modules/relaxedjs/node_modules/mathjax/unpacked/jax/input/AsciiMath/jax.js

File load error

from relaxed.

benperiton avatar benperiton commented on May 21, 2024

Ah, sorry I misunderstood :)

What version of node/npm are you using?

from relaxed.

chinanf-boy avatar chinanf-boy commented on May 21, 2024
~
❯ node -v           
v9.6.1

~
❯ npm -v                          
6.0.0

from relaxed.

benperiton avatar benperiton commented on May 21, 2024

That's strange, what is the contents of your dd.pug?

from relaxed.

chinanf-boy avatar chinanf-boy commented on May 21, 2024

Just Copy

h1 My document's title
p A paragraph in my document

from relaxed.

benperiton avatar benperiton commented on May 21, 2024

Just to check, you installed using npm i -g relaxedjs without using sudo?
I'm a bit stumped, that error seems to be coming from mathjax itself

from relaxed.

chinanf-boy avatar chinanf-boy commented on May 21, 2024

My node install by https://github.com/tj/n

node install Dont need the sudo

May be I try use the sudo node try again

from relaxed.

chinanf-boy avatar chinanf-boy commented on May 21, 2024

So weird

Try one:

  1. cd $HOME
  2. sudo/no relaxed dd.pug

Try two:

  1. where relaxed
  2. cd relaxed PATH
  3. sudo/no node src/index.js dd.pug

from relaxed.

DanielRuf avatar DanielRuf commented on May 21, 2024

Did you use sudo? sudo should not be used to install or use node packages.

from relaxed.

chinanf-boy avatar chinanf-boy commented on May 21, 2024

sudo/no is say : I use sudo and no use both

from relaxed.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.