# koa-island **Repository Path**: mini-docker/koa-island ## Basic Information - **Project Name**: koa-island - **Description**: No description available - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-09-04 - **Last Updated**: 2021-03-08 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # koa-island wx-little-program koa back-end ### 当调试出现问题 1, ``` https://stackoverflow.com/questions/27688804/how-do-i-debug-error-spawn-enoent-on-node-js const path = require("path"); let { spawn } = require("child_process"); // console.log(123456, process.cwd()) // process.cwd() let child = spawn("node", ["1.test.js", "a", "b", "c"], { cwd: path.join(__dirname, "./") }); //如果不写stdio 默认是管道类型 child.stderr.on("data", function(data) { console.log(data.toString()); }); child.on('exit', function () { console.log('exit') }); child.on('close', function () { console.log('close') }) child.on('error', function (err) { console.log('发生错误') }); ``` 2, ``` UnhandledPromiseRejectionWarning: ...... 函数方法中async和await或者是对promise的处理不正确 ```