For the last few weeks, we’ve been running our Yarn monorepo and deploying consistently without problems. However, as of this morning, we are getting errors with Command "deploy" not found
where “deploy” is any command in our package.json
scripts file . We haven’t changed base directory, publish directory, our netlify.toml
nor our build command. We have a deploy preview that built fine yesterday and has not had any changes since that is now failing with the below message if I try to re-build:
1:44:26 PM: ┌───────────────────────────────────────────────────────────┐
1:44:26 PM: │ 2. Running onPreBuild command from deputy-content-fetcher │
1:44:26 PM: └───────────────────────────────────────────────────────────┘
1:44:26 PM:
1:44:27 PM:
1:44:27 PM: ┌─────────────────────────────┐
1:44:27 PM: │ Plugin internal error │
1:44:27 PM: └─────────────────────────────┘
1:44:27 PM:
1:44:27 PM: ❯ Error message
1:44:27 PM: Error: Command failed: yarn update:stats
1:44:27 PM: error Command "update:stats" not found.
1:44:27 PM:
1:44:27 PM:
1:44:27 PM: ❯ Plugin details
1:44:27 PM: ID: deputy-content-fetcher
1:44:27 PM: npm link: https://www.npmjs.com/package/undefined
1:44:27 PM:
1:44:27 PM: ❯ Error location
1:44:27 PM: In "onPreBuild" event in local plugin "./build/storyblokFetcher.js"
1:44:27 PM: at ChildProcess.exithandler (child_process.js:294:12)
1:44:27 PM: at ChildProcess.emit (events.js:198:13)
1:44:27 PM: at maybeClose (internal/child_process.js:982:16)
1:44:27 PM: at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)
1:44:27 PM:
1:44:27 PM: ❯ Error properties
1:44:27 PM: { killed: false,
1:44:27 PM: code: 1,
1:44:27 PM: signal: null,
1:44:27 PM: cmd: 'yarn update:stats',
1:44:27 PM: stdout:
1:44:27 PM: '\u001b[2K\u001b[1G\u001b[1myarn run v1.17.0\u001b[22m\n\u001b[2K\u001b[1G\u001b[34minfo\u001b[39m Visit \u001b[1mhttps://yarnpkg.com/en/docs/cli/run\u001b[22m for documentation about this command.\n',
1:44:27 PM: stderr:
1:44:27 PM: '\u001b[2K\u001b[1G\u001b[31merror\u001b[39m Command "update:stats" not found.\n' }
1:44:27 PM:
1:44:27 PM: ┌─────────────────────────────┐
1:44:27 PM: │ END Plugin internal error │
1:44:27 PM: └─────────────────────────────┘