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 :: document on click dynamic element 
Javascript :: jquery reset form 
Javascript :: how to assign port in angular 
Javascript :: javascript sum array of objects 
Javascript :: Codewars JS Beginner Series #3 Sum of Numbers 
Javascript :: string to url javascript 
Javascript :: jimp get image size 
Javascript :: check email regex js 
Javascript :: moment format date dd/mm/yyyy 
Javascript :: javascript check uncheck checkbox 
Javascript :: vscode auto import single quote 
Javascript :: jest timeout 
Javascript :: discord.js kick user 
Javascript :: sleep in javascript 
Javascript :: sort by date js 
Javascript :: es6 add and remove class 
Javascript :: remove all from array that matches 
Javascript :: javascript byte array to hex string 
Javascript :: jquery get all title 
Javascript :: js add id to element 
Javascript :: js regex domain name 
Javascript :: jquery add remove class clicked element 
Javascript :: material ui multiline 
Javascript :: select2 disable search 
Javascript :: javascript detect space in string 
Javascript :: get query param javascript 
Javascript :: jquery get value checkbox checked 
Javascript :: “javascript factorial” Code Answer’s' 
Javascript :: push tr in tbody using jquery 
Javascript :: export type you may need an appropriate loader to handle this file type 
ADD CONTENT
Topic
Content
Source link
Name
3+7 =