Category Archives: Node Js

How to Fix “Port 4200 is already in use” error

How to Fix “Port 4200 is already in use” error

Sometimes when you running your node js application, you may “Port 4200 is already in use” error. This is mainly happens because of any other application running on the same port. In order to fix this error you can start your application on different port or you can terminate the existing application running on the same port. Instruction to terminate the running application are as below –

Open Command Prompt and type –

How to Fix "Port 4200 is already in use" error

Find the PID of the process that you want to terminate and then type –

This one 1800 is the PID for the process that I want to kill.

How to fix “module was compiled against different Node.js version” error

How to fix “module was compiled against different Node.js version” error

How to fix "module was compiled against different Node.js version" error

You need to remove the respective module folder (bcrypt) from the node_modules folder and install it again, using following commands –

Or you can simply rebuild the package and tell npm to update it’s binary too, use following single command to get it fixed –