I accidentally deleted MyProject/node_modules
folder from my solution.
Is there any way to recreate this folder?
I tried npm install
, npm update
but no success.
I accidentally deleted MyProject/node_modules
folder from my solution.
Is there any way to recreate this folder?
I tried npm install
, npm update
but no success.
There is a npm package which will search through your source code and create a list of dependancies.
If you create a new package.json (use npm init) then run dependency-check in your project directory, the file will be populated. Then simply run npm install.
if the folder node_modules
can't be created when you write npm install
:
package.json
and package-lock.json
or delete it.I recommend rename before to delete.node_modules
package.json
writting npm init
or npm init -y
npm install
if not found try installa with a npm package example npm i fs