Error: Cannot find module 'resolve' 1

Error: Cannot find module ‘resolve’

$ rm -rf node_modules package-lock.json
$ npm i

Here is what the above code is Doing:
1. We’re using the rm command to remove the node_modules directory and the package-lock.json file.
2. We’re using the npm i command to install the dependencies listed in the package.json file.

Similar Posts