Closed chris-rogers-anki closed 5 years ago
when i run "cd server && npm start" I get:
Error: Cannot find module '/Users/chris.rogers/workspace/posenet-for-installations/server/dist/index.js'
[Node] at Function.Module._resolveFilename (internal/modules/cjs/loader.js:603:15)
[Node] at Function.Module._load (internal/modules/cjs/loader.js:529:25)
[Node] at Function.Module.runMain (internal/modules/cjs/loader.js:775:12)
[Node] at startup (internal/bootstrap/node.js:300:19)
[Node] at bootstrapNodeJSCore (internal/bootstrap/node.js:826:3)
[Node] npm ERR! code ELIFECYCLE
[Node] npm ERR! errno 1
[Node] npm ERR! posenet-offline-websocket-app@1.0.0 serve: `node ./dist/index.js`
[Node] npm ERR! Exit status 1
[Node] npm ERR!
[Node] npm ERR! Failed at the posenet-offline-websocket-app@1.0.0 serve script.
running "yarn build" fixed it.
I can run the app, however there does not seem to be a server running websockets on localhost:8080
App.tsx:252 WebSocket connection to 'ws://localhost:8080/' failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED
I can run other servers and access them through localhost.
error message: