Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/node.js/37.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Node.js 我能';t安装cordova插件_Node.js_Cordova - Fatal编程技术网

Node.js 我能';t安装cordova插件

Node.js 我能';t安装cordova插件,node.js,cordova,Node.js,Cordova,我正在尝试添加此插件,但当我运行命令时,我看到以下错误: Error during processing of action! Attempting to revert... Failed to install 'com.mobileapptracking.matplugin':TypeError: Uh oh! Arguments to path.resolve must be strings at Object.exports.resolve (path.js:313:15)

我正在尝试添加此插件,但当我运行命令时,我看到以下错误:

 Error during processing of action! Attempting to revert...
Failed to install 'com.mobileapptracking.matplugin':TypeError: Uh oh!
Arguments to path.resolve must be strings
    at Object.exports.resolve (path.js:313:15)
    at module.exports.framework.install (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/platforms/android.js:106:31)
    at Object.ActionStack.process (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/util/action-stack.js:70:25)
    at handleInstall (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/install.js:567:20)
    at /usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/install.js:322:20
    at _fulfilled (/usr/local/lib/node_modules/cordova/node_modules/q/q.js:798:54)
    at self.promiseDispatch.done (/usr/local/lib/node_modules/cordova/node_modules/q/q.js:827:30)
    at Promise.promise.promiseDispatch (/usr/local/lib/node_modules/cordova/node_modules/q/q.js:760:13)
    at /usr/local/lib/node_modules/cordova/node_modules/q/q.js:574:44
    at flush (/usr/local/lib/node_modules/cordova/node_modules/q/q.js:108:17)
TypeError: Uh oh!
Arguments to path.resolve must be strings
    at Object.exports.resolve (path.js:313:15)
    at module.exports.framework.install (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/platforms/android.js:106:31)
    at Object.ActionStack.process (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/util/action-stack.js:70:25)
    at handleInstall (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/install.js:567:20)
    at /usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/install.js:322:20
    at _fulfilled (/usr/local/lib/node_modules/cordova/node_modules/q/q.js:798:54)
    at self.promiseDispatch.done (/usr/local/lib/node_modules/cordova/node_modules/q/q.js:827:30)
    at Promise.promise.promiseDispatch (/usr/local/lib/node_modules/cordova/node_modules/q/q.js:760:13)
    at /usr/local/lib/node_modules/cordova/node_modules/q/q.js:574:44
    at flush (/usr/local/lib/node_modules/cordova/node_modules/q/q.js:108:17)
我的节点版本是v0.10.25
我的npm版本是1.3.10

我的cordova版本是3.6.3-0.2.13

你应该更新你的cordova版本并更新你的android平台,或者完全删除它,然后再次添加它

请更新Cordova:

sudo npm update -g cordova
sudo npm update -g cordova
请使用以下命令删除您的android平台

cordova platform rm android
cordova platform add android
然后使用以下命令添加平台

cordova platform rm android
cordova platform add android

希望这能对你有所帮助

您应该更新您的Cordova版本,更新您的android平台,或者将其完全删除,然后再次添加

请更新Cordova:

sudo npm update -g cordova
sudo npm update -g cordova
请使用以下命令删除您的android平台

cordova platform rm android
cordova platform add android
然后使用以下命令添加平台

cordova platform rm android
cordova platform add android

希望这能对你有所帮助

您应该更新您的Cordova版本和Cordova android,删除插件并清除其已安装的依赖项,然后重新安装插件

cordova plugin remove com.mobileapptracking.matplugin
cordova plugin add https://github.com/MobileAppTracking/phonegap-plugin
  • 更新Cordova:

    sudo npm update -g cordova
    
    sudo npm update -g cordova
    
  • 更新android平台

    cordova platform update android
    
  • 在您的情况下,似乎应该删除插件

    cordova plugin remove com.mobileapptracking.matplugin
    
    cordova plugin add https://github.com/MobileAppTracking/phonegap-plugin
    
  • 删除目录和中的手动播放服务依赖项 在
    android.json
    文件中

  • 然后重新安装插件

    cordova plugin remove com.mobileapptracking.matplugin
    
    cordova plugin add https://github.com/MobileAppTracking/phonegap-plugin
    

  • 您应该更新您的Cordova版本和Cordova android,删除插件并清除其已安装的依赖项,然后重新安装插件

    cordova plugin remove com.mobileapptracking.matplugin
    
    cordova plugin add https://github.com/MobileAppTracking/phonegap-plugin
    
  • 更新Cordova:

    sudo npm update -g cordova
    
    sudo npm update -g cordova
    
  • 更新android平台

    cordova platform update android
    
  • 在您的情况下,似乎应该删除插件

    cordova plugin remove com.mobileapptracking.matplugin
    
    cordova plugin add https://github.com/MobileAppTracking/phonegap-plugin
    
  • 删除目录和中的手动播放服务依赖项 在
    android.json
    文件中

  • 然后重新安装插件

    cordova plugin remove com.mobileapptracking.matplugin
    
    cordova plugin add https://github.com/MobileAppTracking/phonegap-plugin