0

When i used following command for Twilio

npm install react-native-twilio --save

it is install but when run the

react-native link react-native-twilio

than following error message get

{ Error: Cannot find module 
'D:\ReactNative\TwilioApp\TwilioApp\node_modules\rea
ct-native-twilio\package.json'
at Function.Module._resolveFilename (module.js:548:15)
at Function.Module._load (module.js:475:25)
at Module.require (module.js:597:17)
at require (internal/module.js:11:18)
at getRNPMConfig (D:\ReactNative\TwilioApp\TwilioApp\node_modules\react- 
native\local-cli\core\index.js:52:1)
at Object.getDependencyConfig 
(D:\ReactNative\TwilioApp\TwilioApp\node_modul
es\react-native\local-cli\core\index.js:109:18)
at deps.reduce (D:\ReactNative\TwilioApp\TwilioApp\node_modules\react- 
native\local-cli\link\getDependencyConfig.js:18:24)
at Array.reduce (<anonymous>)
at getDependencyConfig 
(D:\ReactNative\TwilioApp\TwilioApp\node_modules\reac
t-native\local-cli\link\getDependencyConfig.js:15:15)
at Object.link [as func] 
(D:\ReactNative\TwilioApp\TwilioApp\node_modules\re
act-native\local-cli\link\link.js:151:24) code: 'MODULE_NOT_FOUND' }

Please help me.

5
  • Did the npm install command completed successfully or give any warnings/errors? Try running both commands again in an elevated command prompt (using administrator privileges).
    – Uzair A.
    Oct 26, 2018 at 6:41
  • yes i did the npm install command than get npm WARN optional Skipping failed optional dependency /sane/fsevents: npm WARN notsup Not compatible with your operating system or architecture: fseve [email protected] Oct 26, 2018 at 7:27
  • The react-native-twilio repo shows that it hasn't received an update in 2 years and that it implements the old Twilio Client SDK and not the new Twilio Programmable Voice SDK. So I would recommend a different module. Try react-native-twilio-programmable-voice instead, perhaps?
    – philnash
    Oct 29, 2018 at 0:19
  • So that will work for App to Phone call(Like normal calling) ? Oct 30, 2018 at 13:14
  • Thanks that worked for me react-native-twilio-programmable-voice Nov 2, 2018 at 8:17

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Browse other questions tagged or ask your own question.