0

Ich habe das ConnectSDK Cordova Plugin in meine Ionic App integriert. https://github.com/ConnectSDK/Connect-SDK-Cordova-PluginFehler bei Android während der ConnectSDK Installation

während der Installation habe ich einen Fehler für die Android-Plattform:

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' 

Auf iOS die Installation funktionierte perfekt in Ordnung.

cordova -v 7.0.1

npm -v 5.2.0

Knoten -v v7.9.0

Antwort

0

ich dieses Problem behoben.

Ich habe die Version von Node 6 über den Befehl nvm verwendet und die Android-Plattform in Version 5.2.2 hinzugefügt. Und alles hat perfekt funktioniert.

Verwandte Themen