This content originally appeared on DEV Community and was authored by Deeksha
1. How do I kill a process currently using a port on localhost?
npx kill-port 8001
Expected output: Process on port 8001 killed
2. Using import in server.js
Inside package.json add
"type": "module",
3. sh: react-scripts: command not found after running npm start
run npm install
or yarn add
💡 stack-overflow
4. axios baseURL
// Set config defaults when creating the instance
const instance = axios.create({
baseURL: 'https://api.example.com'
});
5. Heroku error code = H10
Heroku dynamically sets the PORT, which can be accessed with process.env.PORT
const port = process.env.PORT || 8001;
This content originally appeared on DEV Community and was authored by Deeksha
Deeksha | Sciencx (2021-10-30T16:59:33+00:00) Fixing my everyday errors!!. Retrieved from https://www.scien.cx/2021/10/30/fixing-my-everyday-errors/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.