-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Closed
Labels
Description
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