作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
第一次使用 Cordova,这个从一开始就难倒了我。在运行cordova create时设置的默认项目上运行“cordova build”时...我收到以下错误:
Android Studio project detected
ANDROID_HOME=/Users/jen/Library/Android/sdk
JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_101.jdk/Contents/Home
studio
(node:1951) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): [object Object]
(node:1951) [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.
最佳答案
在 macOS High Sierra 上遇到了同样的问题。
(node:1951) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): [object Object]
(node:1951) [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.
cd /Library/Java/JavaVirtualMachines
sudo rm -rf jdk1.8.0_101.jdk
export JAVA_HOME=/Library/Java/JavaVirtualMachines/<your version>/Contents/Home
brew install gradle
关于cordova - 运行cordova构建时未处理的PromiseRejectionWarning,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49752598/
情况 我正在尝试设置一种按顺序执行 promise 的方法。我遵循了在线教程之一并提出了这个: return promises.reduce((promiseChain, currentTask)
我是一名优秀的程序员,十分优秀!