Table of Contents

How to install twilio-cli on Centos using npm

Run following command...

npm install -g twilio-cli

If you see the following error...

gyp WARN EACCES user "root" does not have permission to access the dev dir "/root/.node-gyp/10.15.3"

Try following command...

npm install -g twilio-cli --unsafe-perm

You should have twilio installed by now

You might need to add node_modules path in your env

export NODE_PATH=$(npm root -g)

Now twilio should work

twilio login

Common errors while installing Twilio

You might run in to following error...

Error: Error spawning command line “dbus-launch --autolaunch=83c86f693deed3b5096818a45c383ccf --binary-syntax --close-stderr”:

If you do then do following...

yum install dbus-x11
service dbus start

If you run in to following error...

** Message: 08:47:57.863: Remote error from secret service: org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.secrets was not provided by any .service files

then, install following...

yum install gnome-keyring

To fix following error...

No package 'libsecret-1' found

Install libsecret.

yum install libsecret

Now finally twilio should work

twilio profiles:add

Go through the above Twilio steps and you should be good to go!

Related Posts