Home
Support Forums

"build.command" failed Error message, Error location,

I need advice to debug deploy Netlify App

Here are the logs

7:29:27 AM: info Successfully deleted directories
7:29:30 AM: error There was a problem loading plugin “gatsby-plugin-disqus”. Perhaps you need to install its package?
7:29:30 AM: Use --verbose to see actual error.
7:29:30 AM: not finished open and validate gatsby-configs - 0.016s
7:29:30 AM: npm ERR! code ELIFECYCLE
7:29:30 AM: npm ERR! errno 1
7:29:30 AM: npm ERR! netlify-cms-affiliate-theme@1.1.3 build: npm run clean && gatsby build
7:29:30 AM: npm ERR! Exit status 1
7:29:30 AM: npm ERR!
7:29:30 AM: npm ERR! Failed at the netlify-cms-affiliate-theme@1.1.3 build script.
7:29:30 AM: npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
7:29:30 AM: npm ERR! A complete log of this run can be found in:
7:29:30 AM: npm ERR! /opt/buildhome/.npm/_logs/2021-04-11T02_29_30_125Z-debug.log
7:29:30 AM: ​
7:29:30 AM: ────────────────────────────────────────────────────────────────
7:29:30 AM: “build.command” failed
7:29:30 AM: ────────────────────────────────────────────────────────────────
7:29:30 AM: ​
7:29:30 AM: Error message
7:29:30 AM: Command failed with exit code 1: npm run build
7:29:30 AM: ​
7:29:30 AM: Error location
7:29:30 AM: In build.command from netlify.toml:
7:29:30 AM: npm run build
7:29:30 AM: ​
7:29:30 AM: Resolved config
7:29:30 AM: build:
7:29:30 AM: command: npm run build
7:29:30 AM: commandOrigin: config
7:29:30 AM: environment:
7:29:30 AM: - NODE_VERSION
7:29:30 AM: - YARN_VERSION
7:29:30 AM: - YARN_FLAGS

Does this exist in your package.json?

Hey, No, Gatsby plugin disqus not exit in the Package.json file.

Kindly add it as a dependency and re-deploy.

Added and re-deploy, but facing same error.

I don’t see gatsby-plugin-discus in this. Are you sure you have added it?

Thank you very much issue resolved

1 Like