pleask.blogg.se

Npm config set prefix cant read property get of undefined
Npm config set prefix cant read property get of undefined













(for the rest of the directories their short names should be same as their directory name) You will notice these short names only exist for directories either containing spaces or which are longer than 6 characters. Copy that short name against your user name directory and use this in your cache path. What this does is, list down all the directories in current directory along with their short names which aren't supposed to contain any spaces and normally are 6 characters or less in length.

  • Go to C:\Users open power Shell and execute following command.
  • There are a couple of ways to target this, Next question would be how do we know to replace our user name with GIJSVA~1?

    npm config set prefix cant read property get of undefined

    npm config set prefix cant read property get of undefined

    Then change cache path from cache=C:\Users\Gijs van Dam\AppData\Roaming\npm-cache Run npm config edit to edit your config, this will open up a text file in notepad or your configured editor,

    npm config set prefix cant read property get of undefined

    Since there is no directory present named FirstName and the actual directory was supposed to be FirstName LastName its trying to run mkdir, for which its getting operation not permitted.įollowing is how i fixed it thanks to citoreek, g8up & gijswijs Which was also clear by looking at the first line of the stack trace, Error: EPERM: operation not permitted, mkdir 'C:\Users\FirstName' In my case the actual issue was due to the presence of a space in my windows user name folder. Just posting this here to help any future wanderers,















    Npm config set prefix cant read property get of undefined