youzan / zan-proxy

An extensible proxy for PC/Mobile/APP developer

Home Page:https://youzan.github.io/zan-proxy/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

4.0.20报错

libin1991 opened this issue · comments

G:\Code\Vue\vue-tree>zan-proxy
(node:9932) UnhandledPromiseRejectionWarning: Error: ENOENT: no such file or directory, open 'G:\tmp\zanproxy.last-update.tmp'
at Object.fs.openSync (fs.js:646:18)
at Object.fs.writeFileSync (fs.js:1299:33)
at Object.set (D:\Program Files (x86)\node_modules\zan-proxy\dist\bin\selfUpdate.js:45:22)
at Object. (D:\Program Files (x86)\node_modules\zan-proxy\dist\bin\selfUpdate.js:55:19)
at Generator.next ()
at D:\Program Files (x86)\node_modules\zan-proxy\dist\bin\selfUpdate.js:7:71
at new Promise ()
at __awaiter (D:\Program Files (x86)\node_modules\zan-proxy\dist\bin\selfUpdate.js:3:12)
at Object.exports.default (D:\Program Files (x86)\node_modules\zan-proxy\dist\bin\selfUpdate.js:49:25)
at D:\Program Files (x86)\node_modules\zan-proxy\dist\bin\index.js:35:39
(node:9932) 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: 3)
(node:9932) [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.

G:\Code\Vue\vue-tree>node -v
v8.11.1

G:\Code\Vue\vue-tree>

同样的问题

$ zan-proxy
(node:7688) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id:                                       2): Error: ENOENT: no such file or directory, open 'C:\tmp\zanproxy.last-update.tmp'
(node:7688) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. I                                      n the future, promise rejections that are not handled will terminate the Node.js process                                       with a non-zero exit code.

$ node -v
v8.9.4

最新的改动在windows下有问题,可以添加--no-update参数启动或回退到4.0.19版。会在这两天进行修复。

@mickeyinfoshan windows下启动好像不能自动建.front-end-proxy下的文件
以下是依赖这次提交报的错误.

node dist/bin/index.js
开始同步远程规则集
(node:15928) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 2): Error: ENOENT: no such file or directory, scandir 'C:\Users\Designer
\.front-end-proxy\rule'
(node:15928) [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.

4.0.19版也是这个问题. 在mac下起是正常的.

提到了 #66

升级到4.0.22版本 感谢 @cntsw