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

构建docker镜像报错 #1593

Closed
zhaokefei opened this issue Sep 14, 2018 · 4 comments
Closed

构建docker镜像报错 #1593

zhaokefei opened this issue Sep 14, 2018 · 4 comments
Labels

Comments

@zhaokefei
Copy link

拉取最新版代码 0.23.9用dockerfile构建docker镜像时,出现以下错误:

image

若跳过

RUN npm test
RUN npm run dist

命令直接执行后续命令时,在 npm link时出现以下错误:
image

@lijiarui
Copy link
Member

Run npm run lint got the following error on macOS

➜  wechaty git:(master) ✗ npm run lint

> wechaty@0.23.9 lint /Users/jiaruili/git/rui/wechaty
> npm run check-node-version && npm run lint:ts && npm run lint:sh


> wechaty@0.23.9 check-node-version /Users/jiaruili/git/rui/wechaty
> check-node-version --node ">= 10"


> wechaty@0.23.9 lint:ts /Users/jiaruili/git/rui/wechaty
> tslint --project tsconfig.json && tsc --noEmit


src/io.ts:408:9 - error TS2559: Type '(err: Error) => void' has no properties in common with type '{ mask?: boolean | undefined; binary?: boolean | undefined; compress?: boolean | undefined; fin?: boolean | undefined; }'.

408         (err: Error) => {
            ~~~~~~~~~~~~~~~~~

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! wechaty@0.23.9 lint:ts: `tslint --project tsconfig.json && tsc --noEmit`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the wechaty@0.23.9 lint:ts script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/jiaruili/.npm/_logs/2018-09-14T06_25_52_068Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! wechaty@0.23.9 lint: `npm run check-node-version && npm run lint:ts && npm run lint:sh`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the wechaty@0.23.9 lint script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/jiaruili/.npm/_logs/2018-09-14T06_25_52_113Z-debug.log

@lijiarui
Copy link
Member

lijiarui commented Sep 14, 2018

related to the fail in continuous-integration/appveyor/branch, see https://ci.appveyor.com/project/Chatie/wechaty/build/4067

I guess this is because some typescript version not matching.

run npm list see the following not matching peer dep

npm ERR! peer dep missing: typescript@>=2.1.0 || >=2.1.0-dev || >=2.2.0-dev || >=2.3.0-dev || >=2.4.0-dev || >=2.5.0-dev || >=2.6.0-dev || >=2.7.0-dev || >=2.8.0-dev || >=2.9.0-dev, required by tslint@5.11.0
npm ERR! peer dep missing: marked@^0.3.3, required by marked-terminal@1.7.0
npm ERR! peer dep missing: typescript@^2.2.0 || ^3.0.0, required by tslint-eslint-rules@5.4.0
npm ERR! peer dep missing: marked@^0.3.3, required by marked-terminal@1.7.0

@huan
Copy link
Member

huan commented Sep 15, 2018

Should have been fixed by the latest commit.

@huan huan added the bug label Sep 15, 2018
@lijiarui
Copy link
Member

@zhaokefei Please check this issue. If this has been fixed, please close this issue, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants