Can't generate styleguide in working directory #75

JohnAlbin opened this Issue Jul 18, 2014 · 0 comments

1 participant


While using the kss-node script, I can't specify the current directory for the build directory with ..

For example, if I go into this repository's gh-pages directory and run ../bin/kss-node ../demo . -l ../demo/styles.less (which means read the source in ../demo and then put the auto-generated files in the current working directory, .), I receive the following error:

Generating your KSS Styleguide!

 * Source: /Users/jwilkins/Sites/contrib/kss-node/demo
 * Destination: /Users/jwilkins/Sites/contrib/kss-node/gh-pages
 * Template: /Users/jwilkins/Sites/contrib/kss-node/lib/template

        if (e.code !== 'EEXIST') throw e;
Error: EACCES, permission denied '/public'
    at Object.fs.mkdirSync (fs.js:647:18)
    at Object.exports.copyDirSyncRecursive (../node_modules/wrench/lib/wrench.js:177:12)
    at Object.<anonymous> (../bin/kss-node:116:8)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Function.Module.runMain (module.js:497:10)
    at startup (node.js:119:16)
    at node.js:906:3
@JohnAlbin JohnAlbin added a commit that closed this issue Jul 18, 2014
@JohnAlbin JohnAlbin Allow usage of "." in kss-node script's parameters. Fixes #75
Replace path.relative(process.cwd()) with path.resolve().
@JohnAlbin JohnAlbin closed this in b63d1d8 Jul 18, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment