UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'stack' of undefined at C:\Use
‘adb’ ????????????????????????е????
?????????????
‘adb’ ????????????????????????е????
?????????????
(node:14140) UnhandledPromiseRejectionWarning: TypeError: Cannot read property ‘stack’ of undefined
at C:\Users\meisiteZyl\.xtoolkit\node_modules\weexpack\lib\build\android.js21
at
(node:14140) 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:14140) [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 run pack:android时候报错
解决方案:检查adb环境是否配置正常,当初我更换了android sdk的位置,忘记配置环境变量了,所以出现此问题
还没有评论,来说两句吧...