I'm trying to install CyanogenMod on Nexus 4 and so far I had done this:
installed google driver;
enabled developer options on my phone;
enabled debugging by USB;
unlocked my device using ADB;
installed CyanogenMod Recovery;
PS C:\Program Files (x86)\Android\android-sdk\platform-tools> .\fastboot flash recovery .\cm-13.0-20160510-NIGHTLY-mako- recovery.img
started bootloader;
Then I get the following error trying to push the file to the devuce:
PS C:\Program Files (x86)\Android\android-sdk\platform-tools> .\fastboot devices
01cf8682d9c98ac0 fastboot
PS C:\Program Files (x86)\Android\android-sdk\platform-tools> .\adb push cm-13.0-20160510-NIGHTLY-mako.zip /sdcard
error: device '(null)' not found
I followed CyanogenMod instructions step-by-step, including troubleshooting section, but I keep getting this error.
Update: This works from Recovery mode:
Full factory reset
and then:Apply Update -> From ADB
.\adb sideload cm-13.0-20160510-NIGHTLY-mako.zip