Public | Automated Build

Last pushed: 7 days ago
Short Description
nodejs-express
Full Description

Full description is empty for this repo.

Docker Pull Command
Owner
monostream
Source Repository

Comments (2)
libasoles
8 months ago

@kianxineki you must map a local folder to www, and create a app.js file there.

I'm doing so, but now I get:

Cannot find module 'express'

That refers to my first line in app.js, wich is:
var express = require('express');

So, isn't express installed in this image? What Am I doing wrong? A friendly (& brief) doc would be welcome @monostream

kianxineki
10 months ago

from kubernetes version v2:
2016-11-25T09:44:52.091882671Z module.js:472
2016-11-25T09:44:52.091909944Z throw err;
2016-11-25T09:44:52.091913847Z ^
2016-11-25T09:44:52.091916424Z
2016-11-25T09:44:52.091918984Z Error: Cannot find module '/www/app.js'
2016-11-25T09:44:52.091922496Z at Function.Module._resolveFilename (module.js:470:15)
2016-11-25T09:44:52.091925053Z at Function.Module._load (module.js:418:25)
2016-11-25T09:44:52.091927496Z at Module.runMain (module.js:605:10)
2016-11-25T09:44:52.091929929Z at run (bootstrap_node.js:420:7)
2016-11-25T09:44:52.091932329Z at startup (bootstrap_node.js:139:9)
2016-11-25T09:44:52.091934800Z at bootstrap_node.js:535:3