imfunniee / gitfolio

:octocat: personal website + blog for every github user

Home Page:https://imfunniee.github.io/gitfolio/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

`run` command doesn't work

rohit-gohri opened this issue · comments

System Information
Name Value
OS Linux
Node Version v10.13.0
Project Version 0.1.3
What is the current behavior? gitfolio run errors
What is the expected behavior? Should start express server.
Logs
ctrl + c to exit
Error: ENOENT: no such file or directory, stat '/index.html'

The problem seems to be here:

app.use(express.static(__dirname + '/dist'));

This should be ${outdir}/dist

commented

lol ye i saw that after i published the package, will patch that in next version soon. wish npm had an update command.
For now i have written please refrain from using this for now so people don't use it.

commented

fixed it 😄👍

I know this one are actually closed but the run command still not working on my side 👍

i actually have this on my term:

events.js:183
      throw er; // Unhandled 'error' event
      ^

Error: spawn chrome ENOENT
    at _errnoException (util.js:1022:11)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:190:19)
    at onErrorNT (internal/child_process.js:372:16)
    at _combinedTickCallback (internal/process/next_tick.js:138:11)
    at process._tickCallback (internal/process/next_tick.js:180:9)

<3

commented

@Hykios42 hmm from the error it looks like the run command is working but chrome isn't able to open up the localhost. im using this package https://www.npmjs.com/package/open

I know this one are actually closed but the run command still not working on my side +1

i actually have this on my term:

events.js:183
      throw er; // Unhandled 'error' event
      ^

Error: spawn chrome ENOENT
    at _errnoException (util.js:1022:11)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:190:19)
    at onErrorNT (internal/child_process.js:372:16)
    at _combinedTickCallback (internal/process/next_tick.js:138:11)
    at process._tickCallback (internal/process/next_tick.js:180:9)

<3

Im getting the same error on ubuntu

Maybe can you do something like running a server instead of opening a web browser?

commented

it is running a local server you can open it up on localhost:3000, i need to merge #69

also add an option to change port like -p 9090