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

Running the jsonresume-theme-professional theme locally #175

Open
saeedesmaili opened this issue Jan 14, 2025 · 2 comments
Open

Running the jsonresume-theme-professional theme locally #175

saeedesmaili opened this issue Jan 14, 2025 · 2 comments
Labels

Comments

@saeedesmaili
Copy link

saeedesmaili commented Jan 14, 2025

I spent a few hours trying to run the jsonresume-theme-professional theme locally (via jsonresume-cli and resumed), with no success. Neither installing from npm nor copying the theme files and installing it locally worked. I get the following error when serving the resume locally after installing via npm install @jsonresume/jsonresume-theme-professional:

There was an error downloading your generated html resume from our server: Error: Method Not Allowed

Can someone guide on how this can be done?

@saeedesmaili
Copy link
Author

And when exporting, I get another error that I can't figure out how to fix it (the same command works fine with onepage-plus theme):

resume export --theme ./node_modules/jsonresume-theme-professional resume.pdf
or
resume export --theme ./node_modules/@jsonresume/jsonresume-theme-professional resume.pdf

both returns:

You have to install this theme relative to the folder to use it e.g. `npm install /Users/username/l/jsonresume/node_modules/jsonresume-theme-professional/index.js`

@kornpow
Copy link

kornpow commented Jan 29, 2025

Ive been dealing with a similar problem, but I think I managed to figure it out.

First it might help to reset your environment:
npm ls -g --depth=0 is what helped me figure out what is installed.

Now, I have two folders, I have my folder with my json and I have my folder which has a theme it it:

/src/resume-json/
/src/jsonresume-theme-macchiato

Try this?

cd /src/jsonresume-theme-macchiato
npm install
npm link
cd /src/resume-json/
npm link jsonresume-theme-macchiato

# try it?
resume export --resume resume.json --format pdf --theme macchiato public/resume.pdf

Now I can make changes to jsonresume-theme-macchiato and when I rebuild the resume my expected changes are shown.

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

No branches or pull requests

2 participants