ng update fails when windows username contains a space #16865
Labels
area: @angular/cli
freq1: low
Only reported by a handful of users who observe it rarely
severity3: broken
type: bug/fix
Milestone
🐞 bug report
Affected Package
ng update
Is this a regression?
Never seen before.
Good news
This appears to be fixed once updating to latest version - but since the error is observed when trying to do precisely that I thought the solution below may help others.
Description
My Windows user account contains a space, and specifically my temp directories are:
When running
ng update
to update to Angular 9 I get the log below - due to the space.Most notable line:
Could not install from "Weaver\AppData\Local\T...
🔬 Minimal Reproduction
I'm only able to provide the logging as follows:
So pretty obviously something somewhere is blowing up because of the space in my username.
🌍 Your Environment
This was discovered on 8.2.14 but not sure the CLI version at the time.
Also I'm not clear if this issue is already fixed.
Workaround
I just created a folder
c:\temp\angulartemp
and set the environmental variablesI was then able to follow the install instructions for
ng update
and everything went great :-)The text was updated successfully, but these errors were encountered: