localhost server doesn't work with Hugo (v0.40.2)
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.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 ]
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 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?