Need help cordova-plugin-facebook4 can not install plugin

I’m trying to install cordova-plugin-facebook4 but can not anybody have this kind of problem or what should I do ?

Installing “cordova-plugin-facebook4” for ios

Running command: pod install --verbose

Cloning into ‘cocoapods-’…

fatal: repository ‘https://cdn.cocoapods.org/’ not found

Failed to install ‘cordova-plugin-facebook4’: Error: pod: Command failed with exit code 1 Error output:

Cloning into ‘cocoapods-’…

fatal: repository ‘https://cdn.cocoapods.org/’ not found

at ChildProcess.whenDone (/Users/choo/Desktop/App/testFacebook/node_modules/cordova-common/src/superspawn.js:135:23)

at ChildProcess.emit (events.js:315:20)

at maybeClose (internal/child_process.js:1026:16)

at Socket. (internal/child_process.js:441:11)

at Socket.emit (events.js:315:20)

at Pipe. (net.js:674:12)

pod: Command failed with exit code 1 Error output:

Cloning into ‘cocoapods-’…

fatal: repository ‘https://cdn.cocoapods.org/’ not found

for some reason I need to update cocoapod but my os still 10.14 so it not support cocoapod v1.9 then I install older version

sudo gem install cocoapods -v 1.8.4

then when I want to work with Xcode without error just open the file .xcworkspace Then It’s WORK!!