NPM: ENOENT: no such file or directory, rename

When I got this error I looked for all running instances of node in my task manager (i use process explorer on windows) and close/kill all running instances of node. For me its often webstorm or vs code. After closing these programs and ensuring there is no running node process npm install works again.


just delete package-lock.json file and then install packages, that's all you need and should be works

rm package-lock.json && npm i