V
V
Vladislav Chernetsky2015-03-28 02:36:38
Node.js
Vladislav Chernetsky, 2015-03-28 02:36:38

How to solve problem when running express nodejs?

3781d63bc7f3465996146d4000916b00.png
The essence is very simple after installing express.js, it does not start, but it throws me to another line of the console. Although localhost should start: with a port. What is the problem?
- I think I clearly described it, if not, write - I will write additional information. Thank you for your help!

Answer the question

In order to leave comments, you need to log in

5 answer(s)
K
Konstantin Kitmanov, 2015-03-28
@vcdesinger

Show code.
full stack engineer, my ass.
PS Did you try to read what the generator writes?

run the app:
     $ DEBUG=myapp:* ./bin/www

A
Alexander Prozorov, 2015-03-28
@Staltec

Maybe your laptop is clogged with dust? Or did you not feed the cat? You should look at the tarot cards, you can immediately see what the problem is. In the meantime, from your question it is only clear that you have a MacBook Pro.

S
Stanislav, 2015-03-28
@ms-dred

Describe in more detail how you launch, what is in the handler file? And then you can only guess.

S
SagePtr, 2015-03-28
@SagePtr

Maybe they forgot to save app.js and it's empty at all?)

V
Vladislav Chernetsky, 2015-03-28
@vcdesinger

I apologize for my mistake in posing the question:

Such questions have no value. They do not formulate the problem and do not allow to unambiguously identify its solution.

I solved the problem - I looked at the generator, and what needs to be done to be able to run through node app.js? Now I'm running it with npm start. Thanks for the replies.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question