edgeder

Results 1 comments of edgeder

spy-debugger\node_modules\[email protected]@connect\lib\middleware\static.js 中require"mime" 由于connect依赖没有限定版本号,所以cnmp下载的是mime2.0,但mime2.0变api了。 spy-debugger\node_modules\[email protected]@connect\node_modules\mime\README.md(如果是mine2.0版本)中提到 * `lookup()` renamed to `getType()` * `charset()` and `load()` methods have been removed 所以将static.js里的lookup()改成getType(),将变量charset = 'utf8'直接附成字符串。这样就不会有mime的报错了。 用cnpm安装Weinre的话也有这个问题。稍微改一下就ok。