taro启动时候报错怎么解决??

发布于 2022-09-11 17:11:10 字数 1177 浏览 19 评论 0

taro 启动h5的时候报这个错,查了好多资料,都找不到解决方法,有大神遇到这个问题码?

UnhandledPromiseRejectionWarning: TypeError [ERR_INVALID_ARG_TYPE]: The "id" argument must be of type string. Received type undefined
    at Module.require (internal/modules/cjs/loader.js:631:11)
    at require (internal/modules/cjs/helpers.js:22:18)
    at Object.getNpmPkg (C:\Users\Administrator\AppData\Roaming\npm\node_modules\@tarojs\cli\src\util\npm.js:151:17)
    at buildDist (C:\Users\Administrator\AppData\Roaming\npm\node_modules\@tarojs\cli\src\h5.js:894:42)
    at Object.build (C:\Users\Administrator\AppData\Roaming\npm\node_modules\@tarojs\cli\src\h5.js:958:9)
    at process._tickCallback (internal/process/next_tick.js:68:7)
(node:12440) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2)
(node:12440) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

时光匆匆的小流年 2022-09-18 17:11:10

执行npm update就可以了

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文