我正在尝试安装此插件'cordova-plugin-connectsdk',而我却收到此错误:
Failed to install 'cordova-plugin-connectsdk': Error: Cannot find module 'internal/util/types'
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 evalmachine.<anonymous>:31:26
at Object.<anonymous> (/Users/User/Desktop/Projects/project/project/plugins/cordova-plugin-connectsdk/scripts/node_modules/unzip/node_modules/fstream/node_modules/graceful-fs/fs.js:11:1)
at Module._compile (module.js:653:30)
at Object.Module._extensions..js (module.js:664:10)
at Module.load (module.js:566:32)
at tryModuleLoad (module.js:506:12)
这是我的环境信息:
✔收集环境信息-完成!
离子:
ionic(Ionic CLI):4.1.2(/ usr / local / lib / node_modules / ionic) 离子框架:离子角3.9.2 @ ionic / app-scripts:3.2.0
科尔多瓦:
cordova(Cordova CLI):8.0.0 Cordova平台:Android 6.4.0 Cordova插件:cordova-plugin-ionic-keyboard 2.1.2,cordova-plugin-ionic-webview 2.1.0(和其他9个插件)
系统:
NodeJS:v8.12.0(/ usr / local / bin / node) npm:6.4.1 操作系统:macOS High Sierra
任何帮助将不胜感激
答案 0 :(得分:1)
主要的github ConnecdSDK存储库目前尚未积极开发,因此请尝试安装其分支之一。例如:
ionic cordova plugin add https://github.com/boedy/Connect-SDK-Cordova-Plugin.git