The issue: I have a gatsby blog on netlify [happy-ardinghelli-804962.netlify.app → sukantamaikap.com]. I’m facing the below build failure only during build on netlify (on local [mac with exact same node version], it passes like a breeze)
9:12:12 PM: npm ERR! code ERR_INVALID_ARG_TYPE 9:12:12 PM: npm ERR! The "from" argument must be of type string. Received undefined 9:12:12 PM: npm ERR! A complete log of this run can be found in: 9:12:12 PM: npm ERR! /opt/buildhome/.npm/_logs/2022-06-18T11_11_13_975Z-debug-0.log 9:12:12 PM: Error during NPM install 9:12:12 PM: Build was terminated: Build script returned non-zero exit code: 1
I tried the usual fix from StackOverflow without any help.
Here is my
[build] publish = "public" command = "gatsby build" [build.environment] NODE_VERSION = "16.15.1"
Build Log: Netlify App