Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

我下载了源码,想直接编译一下,npm run build报错了 #27

Closed
qing1215ler opened this issue Jul 3, 2018 · 1 comment
Closed

Comments

@qing1215ler
Copy link

src/ProxyServer/impl/handler/connect.ts:34:45 - error TS2339: Property 'port' does not exist on type 'string | AddressInfo'.
Property 'port' does not exist on type 'string'.

34 IPKey = this._getIPKey(conn.address().port);
~~~~

npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! zan-proxy@4.0.13 build: tsc
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the zan-proxy@4.0.13 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

@mickeyinfoshan
Copy link
Contributor

@type/node的最新版有点问题,npm install @type/node@9.6.6 后重新编译即可

@mickeyinfoshan mickeyinfoshan mentioned this issue Jul 5, 2018
mickeyinfoshan added a commit that referenced this issue Jul 5, 2018
**Implemented enhancements:**

- [支持Host多选](#24)
- [支持转发规则集信息编辑](#30)
- [使用fs.realpathSync判断dataFileRealPath是否包含mockDataDir](#25)
- 优化构建命令
- 增加更新提示

**Fixed bugs:**

- [修复@types/node版本过高导致构建失败的问题](#27)
- [删除特殊字符的规则时报错](#28)
- 修复监控器请求数据展示异常
- 兼容没有action的老数据
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants