简体   繁体   English

安装ConnectSDK时在Android上出现错误

[英]Error on Android during ConnectSDK installation

I integrated the ConnectSDK Cordova Plugin into my Ionic App. 我将ConnectSDK Cordova插件集成到了Ionic App中。 https://github.com/ConnectSDK/Connect-SDK-Cordova-Plugin https://github.com/ConnectSDK/Connect-SDK-Cordova-Plugin

During the Installation I got an error for the Android Platform: 在安装过程中,我遇到了Android平台错误:

Failed to install 'cordova-plugin-connectsdk': Error: Cannot find module 'internal/fs'
at Function.Module._resolveFilename (module.js:470:15)
at Function.Module._load (module.js:418:25)
at Module.require (module.js:498:17)
at require (internal/module.js:20:19)
at evalmachine.<anonymous>:18:20
at Object.<anonymous> (/Users/username/desktop/app/plugins/cordova-plugin-connectsdk/scripts/node_modules/unzip/node_modules/fstream/node_modules/graceful-fs/fs.js:11:1)
at Module._compile (module.js:571:32)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:488:32)
at tryModuleLoad (module.js:447:12)
Error: Cannot find module 'internal/fs'

On iOS the installation worked perfectly fine. 在iOS上,安装工作正常。

cordova -v 7.0.1 科尔多瓦-v 7.0.1

npm -v 5.2.0 npm -v 5.2.0

node -v v7.9.0 节点-v v7.9.0

I fixed this issue. 我解决了这个问题。

I used the node 6 version via the nvm command and added the android platform on version 5.2.2. 我通过nvm命令使用了节点6版本,并在版本5.2.2上添加了android平台。 And everything worked perfectly fine. 一切工作都很好。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM