Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

npm ERR! code ELIFECYCLE npm ERR! errno 2

Step 1: $ npm cache clean --force

Step 2: Delete node_modules by $ rm -rf node_modules package-lock.json folder or delete it manually by going into the directory and right-click > delete / move to trash. Also, delete package-lock.json file too.

Step 3: npm install

To start again, $ npm start

This worked for me. Hopes it works for you too.

PS: If it is still there, kindly check the error it is displaying in red and act accordingly. This error is specific to node.js environment.


A special thanks to - Prakhar Mittal (https://stackoverflow.com/users/9478145/prakhar-mittal)
Comment

npm ERR! code ELIFECYCLE npm ERR! errno 1

rm -rf node_modules && rm ./package-lock.json && npm install
Comment

npm ERR! code ELIFECYCLE npm error

rm -rf node_modules package-lock.json
Comment

PREVIOUS NEXT
Code Example
Javascript :: javascript size of variable in kb 
Javascript :: efault loader is not compatible with `next export`. 
Javascript :: react native inverted reverse array 
Javascript :: useparams remix 
Javascript :: javascript create variable containing an object that will contain three properties that store the length of each side of the box 
Javascript :: exponent form calculator in angular 
Javascript :: javascript ceiling 
Javascript :: js check if date object is invalid 
Javascript :: update node ubuntu 
Javascript :: set focus javascript 
Javascript :: how to move a channel to a category discord js 
Javascript :: find unique elements in array javascript 
Javascript :: CocoaPods could not find compatible versions for pod "ReactCommon/jscallinvoker" 
Javascript :: jquery get date from datepicker 
Javascript :: remove item from array by id 
Javascript :: Uncaught ReferenceError: $localize is not defined angular 
Javascript :: scrool to top jquerry 
Javascript :: find vowel & consonants in a string java script 
Javascript :: external linking of JavaScript in html 
Javascript :: js alert yes no 
Javascript :: remove extra spaces javascript 
Javascript :: create loopback js ptoject 
Javascript :: how to get the current date and time in javascript 
Javascript :: react jsx style with calc 
Javascript :: scroll page to top after ajax success 
Javascript :: get moment date without time 
Javascript :: create react app in current folder 
Javascript :: javascript remove dom element 
Javascript :: express post body 
Javascript :: jest mock react router params 
ADD CONTENT
Topic
Content
Source link
Name
2+2 =