poloclub / cnn-explainer

Learning Convolutional Neural Networks with Interactive Visualization.
https://poloclub.github.io/cnn-explainer/
MIT License
8.1k stars 1.22k forks source link

HTTP ERROR 403 #50

Closed Latiest closed 2 years ago

Latiest commented 2 years ago

When I run the application npm run dev, open the localhost:5000 at edge, it return HTTP ERROR 403.How can I figure it out?

xiaohk commented 2 years ago

Hello @Latiest , sorry for the late response.

Did you run npm install before npm run dev?

Latiest commented 2 years ago

yes, I run npm install, then I run npm run dev. It returns 403

xiaohk commented 2 years ago

I see. I guess it is because macOS now occupies port 5000.

Can you please try to run npx sirv public --single --dev --port 3000 and open localhost:3000 in your browser?

Latiest commented 2 years ago

Ok. Is running successfully now. Thanks a lot.

xiaohk commented 2 years ago

Nice! Thanks for reporting this error. I changed the default port number from 5000 to 3000 in 6214bdebdc2f81045724c54c2cc7a9b0d4b0400c.