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.
执行npm update就可以了