I use pnpm to manage npm project, and I modified the content of an installed package by accident, say, I cleared the content of node_modules/jquery/dist/jquery.js
.
The problem is no matter how i reinstall jquery(pnpm install jquery
), the content of this file is always empty. I even tried to delete jquery
from pnpm store ~/.pnpm-store/
, but that doesn't work(maybe I deleted wrong package)
Finally, I have to delete all the files in ~/.pnpm-store
, to download everything, it fixes my problem, but I want to know if there is any easier way to do it.