petersalomonsen / githttpserver Goto Github PK
View Code? Open in Web Editor NEWSimple git http server, used for demo of https://github.com/petersalomonsen/wasm-git
Simple git http server, used for demo of https://github.com/petersalomonsen/wasm-git
git clone https://github.com/petersalomonsen/githttpserver
cd githttpserver
npm install
npm run start
go to localhost:5000
enter http://localhost:5000/nikitavoloboev/ts
gets
git clone http://localhost:5000/nikitavoloboev/ts
ERROR 12: early EOF
Bad news:
early EOF
Hi, Peter! I wanted to try and play with this song here https://youtu.be/Hko5ZXxulaY and realized it's stored in your other Git WASM project so I got into learning and researching how all this works and tried to view the song in the music studio but unfortunately, it works neither in the studio and not in the stand alone git app too (this is the url I try to Clone) for me and I'm getting the error in the title. Am I doing something wrong or the files are deleted / moved to a different URL?
I installed dependencies but get this when I try run it:
~/clones/githttpserver master
❯ npm run start
> @ start /Users/nikiv/clones/githttpserver
> node server/githttpserver.js
node:events:505
throw er; // Unhandled 'error' event
^
Error: listen EADDRINUSE: address already in use :::5000
at Server.setupListenHandle [as _listen2] (node:net:1380:16)
at listenInCluster (node:net:1428:12)
at Server.listen (node:net:1516:7)
at file:///Users/nikiv/clones/githttpserver/server/githttpserver.js:100:4
at ModuleJob.run (node:internal/modules/esm/module_job:198:25)
at async Promise.all (index 0)
at async ESMLoader.import (node:internal/modules/esm/loader:409:24)
at async loadESM (node:internal/process/esm_loader:85:5)
at async handleMainPromise (node:internal/modules/run_main:61:12)
Emitted 'error' event on Server instance at:
at emitErrorNT (node:net:1407:8)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
code: 'EADDRINUSE',
errno: -48,
syscall: 'listen',
address: '::',
port: 5000
}
Node.js v17.9.0
ELIFECYCLE Command failed with exit code 1.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.