Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

npm start doesnt work if i make any changes in the html files/any other files #66

Open
hackyguru opened this issue Jul 16, 2020 · 6 comments

Comments

@hackyguru
Copy link

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

@ianramzy
Copy link
Owner

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.

@Chaphasilor
Copy link
Collaborator

@hackyguru try either running npm start (never npm build) or just node server.js. Both of the commands should start the server :)

@hackyguru
Copy link
Author

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

@ianramzy
Copy link
Owner

Are you saving the files? Your browser could also be caching old versions of the files. Try a force refresh (google the command)

@rencontre634
Copy link

Hi how can i use it with localhost on xampserver?

@Chaphasilor
Copy link
Collaborator

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 :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants