Open hackyguru opened 4 years ago
npm build is not a valid command. If you are just changing static files i.e. Browser JS and HTML files (not server.js) you shouldn't even need to restart the NPM server.
@hackyguru try either running npm start
(never npm build
) or just node server.js
. Both of the commands should start the server :)
i am doing npm install and npm start - it works. but if i try to change any of the html files for example , landing.html and then close vs code and start again to do npm start.... it doesnt work :/ what could be the reason.. im encountering this fr the first time
Are you saving the files? Your browser could also be caching old versions of the files. Try a force refresh (google the command)
Hi how can i use it with localhost on xampserver?
Hi how can i use it with localhost on xampserver?
Hey, I'm afraid you can't :/
xampp is a HTTP
(static pages) and php
server, but this project uses a NodeJS
(JavaScript) server.
To run it, you have to install NodeJS
, which will also install the command line program npm
.
Once these two are installed, you can type npm install
into a console, and once that's finished npm start
:)
I don't know what is the problem :/ the npm start command doesnt work after changing anything in html or any file. for instance , if i just rename the title of the landing.html and close vs code and open it again and then do npm build , it doesnt work. if i clone the repo again , its fine but the same thing happens if i change something