如何在React Native中实现Twilio SDK调用?

时间:2018-10-26 05:00:46

标签: react-native twilio

当我对Twilio使用以下命令时

npm install react-native-twilio --save

它是已安装,但在运行时

react-native link react-native-twilio

比以下错误消息获取

{ 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' }

请帮助我。

0 个答案:

没有答案