添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接

Hi @manasdhanpawde .

Which version of Arduino IDE are you using (e.g., "2.0.1")? The version is shown on the window title bar and also in the Help > About (or Arduino IDE > About Arduino IDE for macOS users) dialog.

What is the name of the library you are attempting to install?

manasdhanpawde:

a message with install failed and access is denied is coming

Is there any more to the message? If so, please post the full and exact text of the message here in case the additional information might allow us to more effectively help you solve the problem.

The version i am using is arduino 2.2.1
I am trying to install MFRC522 library,but in any case,no library is getting installed.
"Failed to install library:'MFRC522:1.4.10'.13 INTERNAL:Library install failed: creating temp dir for extraction: mkdir libraries: Access is denied."
This is the message that is appearing in a dropbox after installation fails

OK, that does give some more valuable information.

Arduino IDE installs libraries to a folder named libraries under your "sketchbook" folder. The installation is failing because Arduino IDE is unable to create that libraries folder. This is likely caused by some problem with the access to the sketchbook folder.

Please do this:

Select File > Preferences (or Arduino IDE > Settings... if you are using macOS) from the Arduino IDE menus. The " Preferences " dialog will open.

You will see a path in the " Sketchbook location " field of the preferences dialog. Check this path to see if there is any reason why Arduino would not be able to create a folder there. If there is some problem with your system that would prevent that, you can correct it. For example, it might be located on Windows OneDrive and your computer might not be connected to the OneDrive service.

If you can't correct the problem with the current sketchbook location, or if the current sketchbook location is not ideal, you can change the " Sketchbook location " preference to some folder that is usable and then click the " OK " button in the " Preferences " dialog to save the updated preferences.

After you have done that, try installing the library again. Hopefully this time it will install without any errors.

Please check Windows Security for other solutions to this problem. I also had the same problem. This is because access to your Sketchbook location (usually c:\Users\You\Documents\Arduino, File > Preferences) is restricted by ransomware (virus and threat prevention), a Windows security feature. Therefore, try changing the path or turning off the ransomware protection feature for a while.