alibaba / rax

🐰 Rax is a progressive framework for building universal application. https://rax.js.org
Other
7.99k stars 627 forks source link

[Question]UnhandledPromiseRejectionWarning: TypeError: callback is not a function #2224

Closed swl880422 closed 3 years ago

swl880422 commented 3 years ago
Install dependencies failed, please enter _err6 => {
if(_err6) {
_callback(_err6);
} else {
_next6();
}
} and retry by yourself

(node:17217) UnhandledPromiseRejectionWarning: TypeError: callback is not a function
    at /Users/lsqswl/Desktop/project/ld-rax-app/node_modules/miniapp-builder-shared/src/autoInstallNpm.js:31:7
(node:17217) 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:17217) [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.

23261629462812_ pic

image

swl880422 commented 3 years ago

npm run start 报错,无法启动web

waylon-gmail commented 3 years ago

image

npm install -g npm
npm i
npm install canvas --canvas_binary_host_mirror=https://npm.taobao.org/mirrors/node-canvas-prebuilt/