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.

  • 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

Reply Children
No Data
Related