tsconfig.json icon indicating copy to clipboard operation
tsconfig.json copied to clipboard

Will not run if there is a space in userprofile path

Open SnowSquire opened this issue 4 years ago • 3 comments

Running on windows 10 my %userprofile% path has a space in it which messes up the code image

SnowSquire avatar Nov 06 '20 15:11 SnowSquire

Any way around this? I've tried renaming my username but looks like I have to recreate the whole account just to remove the space.

CodeNode21 avatar Nov 19 '20 21:11 CodeNode21

you can use regedit, just follow the instructions carefully https://www.tenforums.com/tutorials/89060-change-name-user-profile-folder-windows-10-a.html

On Thu, Nov 19, 2020, 4:48 PM Mat Bednara [email protected] wrote:

Any way around this? I've tried renaming my username but looks like I have to recreate the whole account just to remove the space.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/benawad/tsconfig.json/issues/9#issuecomment-730657561, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJTAFZET7CPXO2F4H6RBGQDSQWHB5ANCNFSM4TMZSFKQ .

SnowSquire avatar Nov 19 '20 21:11 SnowSquire

Temporary solution

run

npm config set cache C:\tmp\nodejs\npm-cache --global

Then

npx tsconfig.json

source: https://stackoverflow.com/questions/57747895/npm-err-code-enolocal-npm-err-could-not-install-from-ibrahi-appdata-roaming-n

Do not know if this a good method, but it works

flyingonionman avatar Mar 07 '21 05:03 flyingonionman