简体   繁体   中英

mfp cordova : Implementation for this cordova subcommand has failed or not been provided: undefined

Just downloaded the latest build of mobile first 7.1 cli (Version - 7.1.0.00.20170710-0611) and finished installing in my Mac OS - Sierra 10.12.5

mfp cordova 运行MFP Cordova命令时出错

mfp cordova platform list -d 运行MFP Cordova平台列表-d命令时出错

I don't know the exactly error, but I'm manual and it work - Change resources.ts in /Applications/IBM/MobileFirst-CLI/mobilefirst-cli/node_modules/mfp_cordova_cmds/lib -> line 71

if (project && project2 && project3 && project4 && path.dirname(project) === path.dirname(project2) &&

if get error with MFP_CORDOVA_PATH not set -> vim ~/.bash_profile

export IBM_CLI_HOME=/Applications/IBM/MobileFirst-CLI
export MFP_CORDOVA_PATH=$IBM_CLI_HOME/mobilefirst-cli/node_modules/cordovacmd/cordova
export PATH=$PATH:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools:$MFP_CORDOVA_PATH

-> source ~/.bash_profile to apply change, you can command 'echo $MFP_CORDOVA_PATH' to check

Try mfp cordova create again

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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