不知道在这问合不合适
今天在用一个新专案的时候
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 删掉 依然不行
不知道是否有先进有遇过类似问题
是怎么处理的呢?