A simple way to run examples without npm

i tried using npm install; npm run dev, it throwed me a 200MB+ folder named node_modules, and DOESN’T WORK.

after downloading the official css(https://pyscript.net/alpha/pyscript.css) and js(https://pyscript.net/alpha/pyscript.js), and put them to path /pyscriptjs/examples/build, everything is fine. all i need to do is to type python -m http.server in the example folder.

then you can go to http://localhost:8000/ to see the examples.

1 Like

I found that npm install ran into some difficulties with missing dependencies in package.json. Had to sort through that a little, adding the 2 that were missing. I then got the examples/build/ to have the js/css.