# npm install 因 package.json 配置错误而失败

**URL:** <https://meta.discourse.org/t/npm-install-fails-due-to-package-json-misconfiguration/101193>\
**Category:** Development\
**Created:** [2018 年11 月 3 日 09:31 UTC](https://meta.discourse.org/t/npm-install-fails-due-to-package-json-misconfiguration/101193 "2018-11-03T09:31:37Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

作者： ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)\
发布日期： [2018 年11 月 5 日 02:07 UTC](https://meta.discourse.org/t/npm-install-fails-due-to-package-json-misconfiguration/101193/6 "2018-11-05T02:07:08Z")

</div>

I wonder if there is some entry we can add to our `package.json` that would force `npm install` to explode with a “sorry, npm is not supported use yarn”

Ultra low priority though.

---

_[View the full topic](https://meta.discourse.org/t/npm-install-fails-due-to-package-json-misconfiguration/101193)._
