cordova-plugin-facebook4插件添加错误

时间:2018-11-09 16:58:49

标签: phonegap

在当前的cordova项目中添加插件时遇到错误。 我用来添加插件的命令:

cordova plugin add https://github.com/jeduan/cordova-plugin-facebook4 --save --variable APP_ID="123xxx" --variable APP_NAME="xxx"

Using this version of Cordova with older version of cordova-android is being deprecated. Consider upgrading to cordova-android@5.0.0 or newer.
Error during processing of action! Attempting to revert...
Failed to install 'cordova-plugin-facebook4':TypeError [ERR_INVALID_ARG_TYPE]: Uh oh!
The "path" argument must be of type string. Received type undefined
at assertPath (path.js:39:11)
at Object.resolve (path.js:166:7)
at install (C:\Users\Nikhil\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\src\plugman\platforms\android.js:142:35)
at C:\Users\Nikhil\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\src\platforms\PlatformApiPoly.js:660:27
at ActionStack.process (C:\Users\Nikhil\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-common\src\ActionStack.js:56:25)
at PlatformApiPoly.addPlugin (C:\Users\Nikhil\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\src\platforms\PlatformApiPoly.js:255:20)
at handleInstall (C:\Users\Nikhil\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\src\plugman\install.js:611:6)
at C:\Users\Nikhil\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\src\plugman\install.js:407:28
at _fulfilled (C:\Users\Nikhil\AppData\Roaming\npm\node_modules\cordova\node_modules\q\q.js:787:54)
at C:\Users\Nikhil\AppData\Roaming\npm\node_modules\cordova\node_modules\q\q.js:816:30
Error: Uh oh!
The "path" argument must be of type string. Received type undefined

0 个答案:

没有答案