# Npm run build fails only on netlify with the error: The "from" argument must be of type string. Received undefined

**URL:** <https://answers.netlify.com/t/npm-run-build-fails-only-on-netlify-with-the-error-the-from-argument-must-be-of-type-string-received-undefined/68436>\
**Category:** Support\
**Tags:** building\
**Created:** [June 18, 2022, 11:13am UTC](https://answers.netlify.com/t/npm-run-build-fails-only-on-netlify-with-the-error-the-from-argument-must-be-of-type-string-received-undefined/68436 "2022-06-18T11:13:46Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![coelmay](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/coelmay/32/24427_2.png) [@coelmay](https://answers.netlify.com/u/coelmay)\
**Post date:** [June 18, 2022, 12:00pm UTC](https://answers.netlify.com/t/npm-run-build-fails-only-on-netlify-with-the-error-the-from-argument-must-be-of-type-string-received-undefined/68436/2 "2022-06-18T12:00:24Z")

</div>

Hey @smaikap

This issue is possibly due to node `v16.15.1` as outlined in the [Node v16.15.1 (npm v8.11.0) breaks some builds](https://answers.netlify.com/t/node-v16-15-1-npm-v8-11-0-breaks-some-builds/64367). Possibly changing this to `v16.15.0` may prove successful.

---

_[View the full topic](https://answers.netlify.com/t/npm-run-build-fails-only-on-netlify-with-the-error-the-from-argument-must-be-of-type-string-received-undefined/68436)._
