resume-cli: Kwan theme cannot be used
I’ve installed the Kwan theme and tried to use it. Here’s the output.
> npm install -g jsonresume-theme-kwan
/usr/local/lib
└── jsonresume-theme-kwan@0.0.2
> resume export --theme kwan resume.html
running validation tests on resume.json ...
✓ Passed all validation tests.
To publish your resume at http://jsonresume.org type the command resume publish
You have to install this theme globally to use it e.g. `npm install -g jsonresume-theme-kwan`
The theme cannot be found although it was just installed. Export still works fine with other themes e.g. Stackoverflow.
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 15 (2 by maintainers)
I had the same problem, and me work-around was to make it all locally
Hi, I met the same issue, and I can not install the phantomjs-prebuilt globally, too.
Then I tried to run:
Just install the phantomjs-prebuilt in the resume-cli, and it works well 😃
@jphellemons, to make it work I had to install resume locally and run it locally:
pay attention to the
-r `pwd`/resume.json
because in my case it was not able to find the resume.json file.I’m running on a Mac with OS 10.14, npm 6.9.0 and node v9.11.1.
Hope this helps
i ran into this same issue with the jsonresume-stackoverflow theme. the issue is resume is expecting the
devDepencies
from these themes to be installed. if you install all of thedevDepencies
at https://github.com/icoloma/jsonresume-theme-kwan/blob/master/package.json#L27-L34 by hand it will work.@davidevernizzi you are my hero. Worked like a charm after spending almost an hour in vain.
Edit this file in your local resume-cli npm installation. https://github.com/jsonresume/resume-cli/blob/master/lib/export-resume/index.js
Right before this line (70):
Add this:
console.log(err)
Save the file and run the your export again. It will now show you the cause of the error instead of giving a default global install message.
My issue was a missing
underscore.string
package so I rannpm install -g underscore.string
and everything worked after that.