How to solve npm error “npm ERR! code ELIFECYCLE”

Step 1: $ npm cache clean –force Step 2: Delete node_modules by $ rm -rf node_modules (rmdir /S /Q node_modules in windows) folder or delete it manually by going into the directory and right-click > delete / move to trash. If are not updating your packages you can delete the package-lock.json file too. Step 3: npm install To start again, $ npm start This worked for me. … Read more

How to fix ‘Unchecked runtime.lastError: Could not establish connection. Receiving end does not exist.’

I have the following error in the Chrome Dev Tools console on every page-load of my Node/Express/React application: Unchecked runtime.lastError: Could not establish connection. Receiving end does not exist This error makes a reference to localhost/:1. When I hover over this, it shows http://localhost:3000/, the address I’m viewing the app at in the browser. Anyone … Read more

How to fix ‘Unchecked runtime.lastError: Could not establish connection. Receiving end does not exist.’

I have the following error in the Chrome Dev Tools console on every page-load of my Node/Express/React application: Unchecked runtime.lastError: Could not establish connection. Receiving end does not exist This error makes a reference to localhost/:1. When I hover over this, it shows http://localhost:3000/, the address I’m viewing the app at in the browser. Anyone … Read more

How do I update Node.js?

Use Node Version Manager (NVM) It’s a Bash script that lets you download and manage different versions of node. Full source code is here. There is a separate project for nvm for Windows: github.com/coreybutler/nvm-windows Below are the full steps to use NVM for multiple version of node on windows download nvm-setup.zip extract and install it. … Read more