不知道在這問合不合適
今天在用一個新專案的時候
npm install 發生問題
npm ERR! code ENOENT
npm ERR! syscall rename
npm ERR! path
/home/k/project/.../node_modules/@babel/compat-data
npm ERR! dest
/home/k/project/.../node_modules/@babel/.compat-data.DELETE
npm ERR! errno -2
npm ERR! enoent ENOENT: no such file or directory, rename
'/home/k/project/.../node_modules/@babel/compat-data' ->
'/home/k/project/.../node_modules/@babel/.compat-data.DELETE'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent
試過 把 node_modules 刪掉 依然不行
不知道是否有先進有遇過類似問題
是怎麼處理的呢?