K
K
KGZVER2020-03-17 00:49:19
JavaScript
KGZVER, 2020-03-17 00:49:19

Why doesn't localhost open automatically when npm start?

I compiled webpack, when you type npm start, the message "Application not found" appears, but if you manually enter " localhost: 8080 " into the address bar, then everything works

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Also_known_as, 2020-03-17
@Also_known_as

Where do you run npm start from and show the package.json file

A
AlexCraft, 2020-03-17
@AlexCraft

The colleague above is right, this is configured in package.json. It has ... a scripts section and there in the script that starts dev (it is called start, apparently) you need to register the --open option

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question