
If this command doesn’t work, you can run the command “ rm package-lock.json” to delete the lock file, or run the command “ npm cache clean -force” to clean the npm cache. In this case, you can run the command “ npm cache verify” to solve the problem. When the checksum of the package is different, then npm will stop the installation and throw the integrity check failed error. When your project has this file, npm will check the integrity of the package you downloaded with the one specified in the lock file. The main reason for the integrity check failed error is usually the package-lock.json.

You can run the “ ls -1” command to check whether there is a package.json file.

If there is no package.json file, the npm install not working issue will occur. This file will list information about this package including name, version, description, keywords, dependencies, etc. When installing a package, npm needs to find the package.json file first. Please refer to this post: How to Install NPM and Node.js on Windows & Mac & Ubuntu. If not, I recommend you uninstall Node.js and then reinstall node.js and npm. You can run the command “ npm -v” to check whether npm is installed. The main cause of the npm command not found error is that npm is not installed. But before proceeding, you should make sure you have typed the correct package name. To fix the npm install not working issue, you can use the following methods. Read More How to Fix the Npm Install Not Working Issue


You can use it to download and install third-party packages and command-line programs written by others for local use.
