Skip to content
This repository has been archived by the owner on Jan 11, 2023. It is now read-only.

yo jekyllrb failing on template copying. #154

Open
OwenMelbz opened this issue Dec 27, 2015 · 0 comments
Open

yo jekyllrb failing on template copying. #154

OwenMelbz opened this issue Dec 27, 2015 · 0 comments

Comments

@OwenMelbz
Copy link

npm ls -g -depth=0
├── bower@1.7.1
├── generator-gulp-webapp@1.0.3
├── generator-jekyllrb@1.4.2 -> /Users/owen/generator-jekyllrb
├── grunt@0.4.5
├── gulp@3.9.0
├── node@4.2.4
├── npm@3.5.2
├── npm-check-updates@2.5.5
└── yo@1.5.1

Currently I'm trying to run the generator, however in the final steps of the generator it just fails, and I cant figure out why, I ended up forking the repo and running npm link to debug it.

It seems to have a waterfall of issues, which I'm stuck on, so I'll just list what happened.

To start with it complained that lodash was no longer a part of the package, so needed to be included manually, when it tried to do this.template('_package.json', 'package.json'); So I just modified app/templates/_package.json so it no longer said "name": "<%= _.slugify(appname) %>", to just "name": "test", this bypassed the error, but then I got to a next error, which was the same but for _bower.json, so again I just hardcoded for the time being.

Next however it through up a larger error which is when I gave up.

? Number of posts to show on the home page all
events.js:141
      throw er; // Unhandled 'error' event
      ^

ReferenceError: /Users/owen/generator-jekyllrb/app/templates/_bower.json:4
    2|   "name": "nah",
    3|   "version": "0.0.0",
 >> 4|   "dependencies": {<%
    5|     var depn = [];
    6|     if (h5bpCss) {
    7|       depn.push('\n    "normalize-css": "~3.0.1"');

print is not defined
    at eval (eval at <anonymous> (/Users/owen/generator-jekyllrb/node_modules/ejs/lib/ejs.js:464:12), <anonymous>:20:5)
    at returnedFn (/Users/owen/generator-jekyllrb/node_modules/ejs/lib/ejs.js:493:17)
    at Object.exports.render (/Users/owen/generator-jekyllrb/node_modules/ejs/lib/ejs.js:315:37)
    at copy.process (/Users/owen/generator-jekyllrb/node_modules/mem-fs-editor/actions/copy-tpl.js:14:18)
    at applyProcessingFunc (/Users/owen/generator-jekyllrb/node_modules/mem-fs-editor/actions/copy.js:13:16)
    at EditionInterface.exports._copySingle (/Users/owen/generator-jekyllrb/node_modules/mem-fs-editor/actions/copy.js:51:16)
    at EditionInterface.exports.copy (/Users/owen/generator-jekyllrb/node_modules/mem-fs-editor/actions/copy.js:23:17)
    at EditionInterface.module.exports [as copyTpl] (/Users/owen/generator-jekyllrb/node_modules/mem-fs-editor/actions/copy-tpl.js:12:8)
    at Generator.template (/Users/owen/generator-jekyllrb/node_modules/yeoman-generator/lib/actions/actions.js:134:11)
    at Generator.bower (/Users/owen/generator-jekyllrb/app/index.js:383:8)

Could anybody shed some light as to why this is happening?

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

No branches or pull requests

1 participant