VSCodeで作業中、いつものように
yarn dev
をしたら以下のエラーがでました。
ERROR EPERM: operation not permitted, lstat 'C:\Users\frontend\.nuxt\mixins'
全文
$ yarn dev yarn run v1.22.4 $ nuxt ╭──────────────────────────────────────────╮ │ │ │ Nuxt.js v2.12.0 │ │ Running in development mode (spa) │ │ │ │ Listening on: http://localhost:3000/ │ │ │ ╰──────────────────────────────────────────╯ i Preparing project for development i Initial build may take a while √ Builder initialized ERROR EPERM: operation not permitted, lstat 'C:\Users\frontend\.nuxt\mixins'
キャプチャ
yarn cache clean
yarnのキャッシュを消して問答無用で再起動したら治りました。
まとめ
とりあえずキャッシュを消して再起動すると大体治る