huan / docker-wechat

DoChat is a Dockerized WeChat (盒装微信) PC Windows Client for Linux
https://hub.docker.com/r/zixia/wechat
Apache License 2.0
2.23k stars 199 forks source link

unbuntu 22 install wechaty by docker get error. no such file or directory, open '/bot/package.json' #202

Open msh01 opened 1 year ago

msh01 commented 1 year ago

this is my error

Starting Docker Container for Wechaty v0.65.15 with Node.js v14.17.5 ...
npm ERR! code ENOENT
npm ERR! syscall open
npm ERR! path /bot/package.json
npm ERR! errno -2
npm ERR! enoent ENOENT: no such file or directory, open '/bot/package.json'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent

my ECS is alicloud china zone.

here is my run command :

sudo docker run -it \
    --name chatsum-wechaty \
    --rm \
    -e WECHATY_LOG="verbose" \
    -e WECHATY_PUPPET \
    -e WECHATY_PUPPET_PADLOCAL_TOKEN \
    -e WECHATY_PUPPET_SERVER_PORT \
    -e WECHATY_TOKEN \
    -p "$WECHATY_PUPPET_SERVER_PORT:$WECHATY_PUPPET_SERVER_PORT" \
    --volume="$(pwd)/wechatyBot":/bot \
    wechaty/wechaty:0.65