#Can you run npm start without using react to deply a local server?

12 messages · Page 1 of 1 (latest)

iron ibex
#

Hi, I'm creating a project with standard JavaScript, HTML, CSS and node_modules folder for later use but I want to use npm start to run a local server. This is because using a node module called fs doesn't work in browser with the VSCode live server extension and needs a local development server to run. How can I do this?

green galleon
green galleon
#

For what?

#

#faq to learn

iron ibex
#

is that server side

green galleon
#

it can be both

#

npm start (or npm run start runs the script from package.json named start

iron ibex
#

how do you add start to package json

#

@green galleon

iron ibex
#

how do I get a live server package