I have bought two Arduino Due boards recently and I am checking the blink test. One works fine and I can upload the code but the second one gives me the following error:
No device found on cu.usbmodem14101
Failed uploading: uploading error: exit status 1
Upload error: Failed uploading; uploading error: exit status 1
I have gone through some solution suggestions such as checking the USB cable and disconnecting all wires but did not help
Install your board's Package Core, it contains the board's driver.
Use a good quality data USB cable to connect the board to the computer without anything connected or wired to the board. Avoid using USB hub. Note that a charging/bad USB cable will make it impossible for your computer to detect your board.
Make sure you select the board and the port it is connected to before uploading a sketch.
Note that the new IDE will auto-detect your board when you connect it to the computer.