Skip to content

Plugin Install errors Troubleshooting Windows 10 Powershell users

ravali-rimmalapudi edited this page Dec 3, 2021 · 1 revision

Problem:

Error when installing a plugin using Windows 10, telling them that the yarn check exited with a code 1.

Error: yarn add @twilio-labs/plugin-XXXXXX@latest --non-interactive --mutex=file:C:\Users\<YOUR USER NAME>\.twilio-cli\yarn.lock --preferred-cache-folder=C:\Users\<YOUR_USER_NAME>\.twilio-cli\yarn --check-files exited with code 1

Workarounds:

1. Delete .twilio-cli and reinstall plugin

PS cd C:\Users\<YOUR_USER_NAME>\
PS del .twilio-cliConfirm
The item at C:\Users\<YOUR_USER_NAME>\.twilio-cli has children and the Recurse parameter was not specified. If you continue, all children will be removed with the item. Are you sure you want to continue?
[Y] Yes  [A] Yes to All  [N] No  [L] No to All  [S] Suspend  [?] Help (default is "Y"): A
PS C:\Users\<YOUR_USER_NAME>\ twilio plugins:install -v @twilio-labs/plugin-XXXXXX

2. Configure yarn globally to increase the install timeouts

npm i yarn -g
yarn config set network-timeout 600000 -g

3. Configure Yarn to using yarn mutex network instead of lock file

yarn add @twilio-labs/plugin-XXXXXX@latest --non-interactive --mutex=network --preferred-cache-folder=C:/Users/<YOU_USER_NAME>/.twilio-cli/yarn --check-files