cupper icon indicating copy to clipboard operation
cupper copied to clipboard

localhost server doesn't work with Hugo (v0.40.2)

Open mathalete opened this issue 7 years ago • 2 comments

After installing latest build of Hugo (v0.40.2) using home-brew noticed that Cupper doesn't serve locally eg: on localhost:1313

I'm on Mac High Sierra 10.13.4 (17E202).

Error log below for reference.


0 info it worked if it ends with ok 1 verbose cli [ '/usr/local/bin/node', '/usr/local/bin/npm', 'run', 'serve' ] 2 info using [email protected] 3 info using [email protected] 4 verbose run-script [ 'preserve', 'serve', 'postserve' ] 5 info lifecycle [email protected]~preserve: [email protected] 6 info lifecycle [email protected]~serve: [email protected] 7 verbose lifecycle [email protected]~serve: unsafe-perm in lifecycle true 8 verbose lifecycle [email protected]~serve: PATH: /usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/Users/[retracted]/Desktop/Desktop/TPG/Cupper/cupper/node_modules/.bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Applications/VMware Fusion.app/Contents/Public 9 verbose lifecycle [email protected]~serve: CWD: /Users/[retracted]/Desktop/Desktop/TPG/Cupper/cupper 10 silly lifecycle [email protected]~serve: Args: [ '-c', 'hugo server --baseURL http://localhost:1313' ] 11 silly lifecycle [email protected]~serve: Returned: code: 255 signal: null 12 info lifecycle [email protected]~serve: Failed to exec serve script 13 verbose stack Error: [email protected] serve: hugo server --baseURL http://localhost:1313 13 verbose stack Exit status 255 13 verbose stack at EventEmitter. (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:285:16) 13 verbose stack at emitTwo (events.js:126:13) 13 verbose stack at EventEmitter.emit (events.js:214:7) 13 verbose stack at ChildProcess. (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14) 13 verbose stack at emitTwo (events.js:126:13) 13 verbose stack at ChildProcess.emit (events.js:214:7) 13 verbose stack at maybeClose (internal/child_process.js:925:16) 13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5) 14 verbose pkgid [email protected] 15 verbose cwd /Users/peterheery/Desktop/Desktop/TPG/Cupper/cupper 16 verbose Darwin 17.5.0 17 verbose argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "serve" 18 verbose node v8.10.0 19 verbose npm v5.6.0 20 error code ELIFECYCLE 21 error errno 255 22 error [email protected] serve: hugo server --baseURL http://localhost:1313 22 error Exit status 255 23 error Failed at the [email protected] serve script. 23 error This is probably not a problem with npm. There is likely additional logging output above. 24 verbose exit [ 255, true ]


mathalete avatar May 09 '18 11:05 mathalete

Still not sure what's causing the problem, but deleting README_BLANK.md in themes/cupper/data at least allowed the server to run.

poorgeek avatar Jul 05 '18 23:07 poorgeek

@poorgeek Hi, just seen this. Thanks for taking a look. README_BLANK.md is needed for the clean command. Is the issue that the default port is different in the new version of Hugo?

Heydon avatar Jul 17 '18 16:07 Heydon