Error: listen EADDRINUSE: address already in use :::3000
sudo lsof -i :3000
Error: listen EADDRINUSE: address already in use :::3000
sudo lsof -i :3000
EADDRINUSE: address already in use
sudo lsof -i :<PORT>
kill -9 <PID>
EADDRINUSE: address already in use :::5000
sudo lsof -i :3000
Error: listen EADDRINUSE: address already in use :::3000
C:\Windows\System32>taskkill /F /IM node.exe
SUCCESS: The process "node.exe" with PID 11008 has been terminated.
Error: listen EADDRINUSE: address already in use :::3000
kill -9 {PID}
Uncaught Error: listen EADDRINUSE: address already in use 0.0.0.0:3000
C:\Users\admin>netstat -ano|findstr "PID :3000"
taskkill /pid 18264 /f
import js in html
<script type="text/javascript" src="yourfile.js"></script>
include script in html
<script type="text/javascript" src="/path/to/script.js"></script>
include js in html
<html>
<head>
</head>
<body>
<script type="text/javascript" src=es4.js></script>
</body>
</html>
how to add script in html head
<script src="script.js" defer></script>
<!--just add defer attribute so script will execute at last-->
how to connect a javascript file to html
<script src="name.js">
//put in your javascript here
</script>
how to connect a js file in html
<!--if you save the javascript file in a folder-->
<script type="text/javscript" src="foldername/filename.js"></script>
<!-- If you save the file in the parent folder-->
<script type="text/javscript" src="filename.js"></script>
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us