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 you are not updating your packages you can delete the package-lock.json file too. Step … Read more

What is the difference between “npm install” and “npm ci”?

From the official documentation for npm ci: In short, the main differences between using npm install and npm ci are: The project must have an existing package-lock.json or npm-shrinkwrap.json. If dependencies in the package lock do not match those in package.json, npm ci will exit with an error, instead of updating the package lock. npm … Read more

Why does “npm install” rewrite package-lock.json?

Update 3: As other answers point out as well, the npm ci command got introduced in npm 5.7.0 as additional way to achieve fast and reproducible builds in the CI context. See the documentation and npm blog for further information. Update 2: The issue to update and clarify the documentation is GitHub issue #18103. Update … Read more

xcode-select active developer directory error

This problem happens when xcode-select developer directory was pointing to /Library/Developer/CommandLineTools when a full regular Xcode was required (happens when CommandLineTools are installed after Xcode) Solution: Install Xcode (get it from https://appstore.com/mac/apple/xcode) if you don’t have it yet. Accept the Terms and Conditions. Ensure Xcode app is in the /Applications directory (NOT /Users/{user}/Applications). Point xcode-select … Read more