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

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.
阅读 7.8k
1 个回答

执行npm update就可以了

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
宣传栏