Skip to content

Wechaty Framework must keep only one Puppet instance #1930

@huan

Description

@huan

The wechaty-puppet is the dependence of wechaty, wechaty-puppet-xxx;

We always need to install serval modules when we install wechaty, like wechaty-puppet-mock, wechaty-puppet-hostie, wechaty-puppet-padplus, etc.

Sometimes(esp. in developing), there will be some unknown reason that causes the system to install the wechaty-puppet module multiple times, e.g. different versions, or different copies of the same version.

If the system have more than one wechaty-puppet module installed, then it will cause unknown problems.

To check this problem, we can use npm ls wechaty-puppet to figure out what the wechaty-puppet we have currently installed.

BAD

$ npm ls wechaty-puppet
wechaty@0.35.6 /home/huan/chatie/wechaty
├── wechaty-puppet@0.21.12 
├─┬ wechaty-puppet-hostie@0.3.31
│ └── UNMET PEER DEPENDENCY wechaty-puppet@0.21.12  extraneous
└─┬ wechaty-puppet-mock@0.19.2
  └── wechaty-puppet@0.21.12  extraneous

GOOD

$ npm ls wechaty-puppet
wechaty@0.35.6 /home/huan/chatie/wechaty
└── wechaty-puppet@0.21.12 

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions