twilio-labs / dev-phone

A developer tool for testing SMS and Voice applications
MIT License
77 stars 20 forks source link

Error during installation #196

Open saranrts opened 7 months ago

saranrts commented 7 months ago

Trying to install the plugin gives me this error

warning @twilio-labs/plugin-dev-phone > @oclif/core > @oclif/screen@3.0.8: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info. warning @twilio-labs/plugin-dev-phone > @twilio-labs/dev-phone-ui > twilio-sync > uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details. warning @twilio-labs/plugin-dev-phone > @twilio-labs/dev-phone-ui > twilio-sync > twilsock > uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details. error Couldn't find package "@twilio/conversations@^2.0.0" required by "@twilio-labs/dev-phone-ui@^1.0.0-beta.1" on the "npm" registry. Error: Couldn't find package "@twilio/cli-core@^7.0.0" required by "@twilio-labs/plugin-dev-phone@latest" on the "npm" registry. at MessageError.ExtendableBuiltin (/opt/homebrew/Cellar/twilio/5.19.1/libexec/node_modules/yarn/lib/cli.js:721:66) at new MessageError (/opt/homebrew/Cellar/twilio/5.19.1/libexec/node_modules/yarn/lib/cli.js:750:123) at PackageRequest. (/opt/homebrew/Cellar/twilio/5.19.1/libexec/node_modules/yarn/lib/cli.js:36620:17) at Generator.throw () at step (/opt/homebrew/Cellar/twilio/5.19.1/libexec/node_modules/yarn/lib/cli.js:310:30) at /opt/homebrew/Cellar/twilio/5.19.1/libexec/node_modules/yarn/lib/cli.js:323:13 at process.processTicksAndRejections (node:internal/process/task_queues:95:5) Error: Couldn't find package "@twilio/voice-sdk@^2.1.0" required by "@twilio-labs/dev-phone-ui@^1.0.0-beta.1" on the "npm" registry. at MessageError.ExtendableBuiltin (/opt/homebrew/Cellar/twilio/5.19.1/libexec/node_modules/yarn/lib/cli.js:721:66) at new MessageError (/opt/homebrew/Cellar/twilio/5.19.1/libexec/node_modules/yarn/lib/cli.js:750:123) at PackageRequest. (/opt/homebrew/Cellar/twilio/5.19.1/libexec/node_modules/yarn/lib/cli.js:36620:17) at Generator.throw () at step (/opt/homebrew/Cellar/twilio/5.19.1/libexec/node_modules/yarn/lib/cli.js:310:30) at /opt/homebrew/Cellar/twilio/5.19.1/libexec/node_modules/yarn/lib/cli.js:323:13 at process.processTicksAndRejections (node:internal/process/task_queues:95:5) Error: Couldn't find package "@twilio/declarative-type-validator@^0.2.6" required by "twilio-sync@^3.0.6" on the "npm" registry. at MessageError.ExtendableBuiltin (/opt/homebrew/Cellar/twilio/5.19.1/libexec/node_modules/yarn/lib/cli.js:721:66) at new MessageError (/opt/homebrew/Cellar/twilio/5.19.1/libexec/node_modules/yarn/lib/cli.js:750:123) at PackageRequest. (/opt/homebrew/Cellar/twilio/5.19.1/libexec/node_modules/yarn/lib/cli.js:36620:17) at Generator.throw () at step (/opt/homebrew/Cellar/twilio/5.19.1/libexec/node_modules/yarn/lib/cli.js:310:30) at /opt/homebrew/Cellar/twilio/5.19.1/libexec/node_modules/yarn/lib/cli.js:323:13 at process.processTicksAndRejections (node:internal/process/task_queues:95:5) Error: Couldn't find package "@twilio/operation-retrier@^4.0.14" required by "twilio-sync@^3.0.6" on the "npm" registry. at MessageError.ExtendableBuiltin (/opt/homebrew/Cellar/twilio/5.19.1/libexec/node_modules/yarn/lib/cli.js:721:66) at new MessageError (/opt/homebrew/Cellar/twilio/5.19.1/libexec/node_modules/yarn/lib/cli.js:750:123) at PackageRequest. (/opt/homebrew/Cellar/twilio/5.19.1/libexec/node_modules/yarn/lib/cli.js:36620:17) at Generator.throw () at step (/opt/homebrew/Cellar/twilio/5.19.1/libexec/node_modules/yarn/lib/cli.js:310:30) at /opt/homebrew/Cellar/twilio/5.19.1/libexec/node_modules/yarn/lib/cli.js:323:13 at process.processTicksAndRejections (node:internal/process/task_queues:95:5) Error: Couldn't find package "@twilio/replay-event-emitter@^0.3.6" required by "twilio-sync@^3.0.6" on the "npm" registry. at MessageError.ExtendableBuiltin (/opt/homebrew/Cellar/twilio/5.19.1/libexec/node_modules/yarn/lib/cli.js:721:66) at new MessageError (/opt/homebrew/Cellar/twilio/5.19.1/libexec/node_modules/yarn/lib/cli.js:750:123) at PackageRequest. (/opt/homebrew/Cellar/twilio/5.19.1/libexec/node_modules/yarn/lib/cli.js:36620:17) at Generator.throw () at step (/opt/homebrew/Cellar/twilio/5.19.1/libexec/node_modules/yarn/lib/cli.js:310:30) at /opt/homebrew/Cellar/twilio/5.19.1/libexec/node_modules/yarn/lib/cli.js:323:13 at process.processTicksAndRejections (node:internal/process/task_queues:95:5) Error: Couldn't find package "@twilio/operation-retrier@^4.0.7" required by "twilsock@~0.12.2" on the "npm" registry. at MessageError.ExtendableBuiltin (/opt/homebrew/Cellar/twilio/5.19.1/libexec/node_modules/yarn/lib/cli.js:721:66) at new MessageError (/opt/homebrew/Cellar/twilio/5.19.1/libexec/node_modules/yarn/lib/cli.js:750:123) at PackageRequest. (/opt/homebrew/Cellar/twilio/5.19.1/libexec/node_modules/yarn/lib/cli.js:36620:17) at Generator.throw () at step (/opt/homebrew/Cellar/twilio/5.19.1/libexec/node_modules/yarn/lib/cli.js:310:30) at /opt/homebrew/Cellar/twilio/5.19.1/libexec/node_modules/yarn/lib/cli.js:323:13 at process.processTicksAndRejections (node:internal/process/task_queues:95:5) Error: Couldn't find package "@twilio/declarative-type-validator@^0.1.11" required by "twilsock@~0.12.2" on the "npm" registry. at MessageError.ExtendableBuiltin (/opt/homebrew/Cellar/twilio/5.19.1/libexec/node_modules/yarn/lib/cli.js:721:66) at new MessageError (/opt/homebrew/Cellar/twilio/5.19.1/libexec/node_modules/yarn/lib/cli.js:750:123) at PackageRequest. (/opt/homebrew/Cellar/twilio/5.19.1/libexec/node_modules/yarn/lib/cli.js:36620:17) at Generator.throw () at step (/opt/homebrew/Cellar/twilio/5.19.1/libexec/node_modules/yarn/lib/cli.js:310:30) at /opt/homebrew/Cellar/twilio/5.19.1/libexec/node_modules/yarn/lib/cli.js:323:13 at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

My configuration:

twilio-cli/5.19.1 darwin-arm64 node-v18.0.0

Steps to reproduce:

After installing the above version of twilio CLI, run this command

twilio plugins:install @twilio-labs/plugin-dev-phone

Any help would be greatly appreciated, thanks!

Lyca0n commented 5 months ago

have you tried to verify which registry it is using in case you have a custom registry or local setup?

twilio plugins:install @twilio-labs/plugin-dev-phone --verbose

you can also try setting up this environment variable to make sure it's going to npm's default

export YARN_REGISTRY="https://registry.npmjs.org"

and then trying again