No Xcode or CLT version detected! Is displayed when npm install is performed with Laravel

No Xcode or CLT version detected! While developing an app with laravel, the error in the image below occurs with the npm install command. image.png Apparently Xcode is not installed and is throwing an error ... Execute the following command to install Xcode.

$ xcode-select --install

A pop-up appears, and I think it's installed successfully ... The installation was interrupted as shown in the image below. image.png

Switch to manual download!

When I looked it up on the internet, it seems that installing Xcode manually will solve the problem. The link below will take you to More Downloads for Apple Developers.

Xcode installation page (actual screen below) image.png As of October 30, 2020, the latest Xcode version was 12.1, so install the second "Xcode 12.1" from the top.

When the installation starts, a pop-up like this is displayed (experienced for about 1 hour) image.png

Execute the npm install command again

After the installation is complete, run the npm install command!

$ npm install

If you are suffering from the same phenomenon, I would appreciate it if you could refer to it!

Recommended Posts

No Xcode or CLT version detected! Is displayed when npm install is performed with Laravel
When [command not found: composer] is displayed when [composer install] is displayed in Laravel
What to do when "npm ERR! Code ENOSELF" is displayed after npm install
When UITextView is not displayed (Swift, Xcode)
No error message is displayed when create action fails