Nuxt 2.5.1にアップデート後にnpm run buildが動かなくなる。
npm run build走らせる
エラー詳細
WARN Unable to update lock within the stale threshold 00:20:05
at options.fs.stat (node_modules/proper-lockfile/lib/lockfile.js:121:25)
at node_modules/graceful-fs/polyfills.js:285:20
at FSReqWrap.oncomplete (fs.js:171:5)
FATAL Lock is already released 00:20:36
at callback (node_modules/proper-lockfile/lib/lockfile.js:241:60)
at Promise (node_modules/proper-lockfile/lib/adapter.js:39:9)
at new Promise (<anonymous>)
at args (node_modules/proper-lockfile/lib/adapter.js:30:25)
at NuxtCommand.lockRelease [as _lockRelease] (node_modules/@nuxt/utils/dist/utils.js:139:11)
at NuxtCommand.releaseLock (node_modules/@nuxt/cli/dist/cli-chunk.js:244:18)
at NuxtCommand.run (node_modules/@nuxt/cli/dist/cli-chunk.js:159:18)
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:182:7)
解決方法
npm run build -- --no-lock
補足
今後のアップデートで直るっぽいので、package.jsonに記載しなくても良さそうです。
取り急ぎ、build時に --no-lockをつけるだけでOK