wechaty / getting-started

A Starter Project Template for Wechaty works out-of-the-box
https://gitpod.io/#https://github.com/wechaty/wechaty-getting-started
Apache License 2.0
772 stars 342 forks source link

Failed to import Wechaty Puppet Provider (WPP) NPM module: "wechaty-puppet-padlocal" #256

Open huan opened 2 years ago

huan commented 2 years ago

Hi @huan , there is an issue to run:

$ npm install --global wechaty@next wechaty-puppet-padlocal 
$ wechaty gateway \
    --puppet wechaty-puppet-padlocal \
    --puppet-token padlocal_XXX \

Error message: Failed to import Wechaty Puppet Provider (WPP) NPM module: "wechaty-puppet-padlocal" Please make sure:

  1. it has been installed correctly. (run npm install wechaty-puppet-padlocal if it doesn't)
  2. "wechaty-puppet-padlocal" is a valid Wechaty Puppet Provider (WPP).

While I have successfully installed "wechaty-puppet-padlocal" root@ecs-87602:~# npm list -g /usr/local/lib ├── corepack@0.10.0 ├── n@8.1.0 ├── npm@8.6.0 ├── wechaty-puppet-padlocal@0.4.2 ├── wechaty-token@1.0.6 └── wechaty@1.11.42

Originally posted by @muhualing in https://github.com/wechaty/puppet-service/issues/194#issuecomment-1088517191

huan commented 2 years ago

PadLocal is not supporting Wechaty v1.x yet, which means that you have to use a docker solution instead of the CLI:

See:

The CLI will be able to use with PadLocal after the below PR has been merged: