Unable to install downloadable app

I was trying to update the PPK II software, but I am receiving a error message: "Error: EPERM: operation not permitted, mkdir 'D:\'"

Well, in my Windows environment, the "D:"  is a disk partition for temporary files (TEMP=D:\).  Then if the instalation software is trying to create a directory d:\,  this operation will be denied.

I removed the previous version, but the problem still happen.

Could you help me?

Regards,

Cláudio

Parents
  • Setting TEMP to a drive is not recommended. Always use a folder (like D:\TEMP) for the temporary dir.

    I believe you can run out of space for file/folder names in the root folder - at least it was this way on FAT/ExFAT. You cannot really run out of space in a sub folder (these auto expand as long as there is free disk space).

    This also makes it much easier to set up proper privileges/ACLs. Note that you may need to use command line tools if you run home windows version.

Reply
  • Setting TEMP to a drive is not recommended. Always use a folder (like D:\TEMP) for the temporary dir.

    I believe you can run out of space for file/folder names in the root folder - at least it was this way on FAT/ExFAT. You cannot really run out of space in a sub folder (these auto expand as long as there is free disk space).

    This also makes it much easier to set up proper privileges/ACLs. Note that you may need to use command line tools if you run home windows version.

Children
  • Good morning,

    I am certified Windows Engineer with more then 30 years of experience in IT, then I prepared my computer to be able to be simple, and as you can see in the partition the computer has more the 5GB free.  If I need to clean the temporary files, I just delete the entire partition D: disk because all of files the I have there are temporary.

    This computer configuration has more than 4 years without problems.

    The entire disk partition is dedicate for temporary files.

    Thank you by your effort to help, but I am not seeing what is the relationship because it was working two week ago.  But when I tried to do a update in the PPK II software, the process failed and I can´t reinstall it anymore

    As I am begining to try to learn Zephyr in the nRF52840-DK in the course nRF Connect SDK Fundamentals , I installed the VSCode the preparation, and maybe something in the instalation changed the npm configurations.... just maybe....

    Take a look in the disk partitions in the screenshot below:

  • I found the source, I mean the error messagem in the PPK II software inside of index.js, not the root cause yet, as I suspected, in the npm installation:

    C:\Users\Claudio Rosa\AppData\Roaming\npm\node_modules\aws-cdk\lib\index.js

    var permissionError=pth=>{const error2=new Error(`operation not permitted, mkdir '${pth}'`);
    This where to find the error message that I reported in the case.
  • The missing sub directory is clearly a user error here. The mkdir call will AFAIK always fail on a pure drive letter or its Root directory.

    The correct solution is to use a sub directoy, i.e.

    set TEMP=D:\TEMP

    instead of trying to use a drive Root. Note that some drives generally disallow user writing (i.e. C: drive).

    The code is trying to create the TEMP dir in case it was missing - which would succeed if and only if you use a subdir.

    Environment variables are user accessible - but MS tried to bury the UI rather deep in menus. Check and change your TEMP environment variable.

    Note that TEMP points to a suitable location by default on windows - you or a program had changed this in the past.

  • Good morning,

    I don´t want to be right, just that the the PPK II working fine is my target.  Then I did the change for what you wrote, I mean TEMP=D:\TEMP, and It is working fine.

    Have a nice week.

    Regards,

    Claudio

    www.linkedin.com/in/claudio-rm-rosa

Related