Click here to Skip to main content
15,902,299 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
C#
C:\Users\VINAYAK'S PC>@powershell -NoProfile -ExecutionPolicy unrestricted -Command "&{$Branch=’dev’;iex ((new-object net.webclient).DownloadString(‘ https://raw.githubusercontent.com/aspnet/Home/dev/dnvminstall.ps1‘))}"
Using temporary directory: C:\Users\VINAYA~1\AppData\Local\Temp\dnvminstall
Downloading DNVM.ps1 to C:\Users\VINAYA~1\AppData\Local\Temp\dnvminstall\dnvm.ps1
Downloading DNVM.cmd to C:\Users\VINAYA~1\AppData\Local\Temp\dnvminstall\dnvm.cmd
Installing DNVM
At line:1 char:157
+ ... Thread.CurrentUICulture = '';$CmdPathFile='C:\Users\VINAYAK'S PC\AppD ...
+                                                                 ~
Unexpected token 'S' in expression or statement.
At line:1 char:258
+ ... ';& 'C:\Users\VINAYA~1\AppData\Local\Temp\dnvminstall\dnvm.ps1' setup
+                                                                   ~~~~~~~
The string is missing the terminator: '.
    + CategoryInfo          : ParserError: (:) [], ParentContainsErrorRecordEx
   ception
    + FullyQualifiedErrorId : UnexpectedToken


What I have tried:

I am trying to install dnvm but it gave me above exception
as i have tried to disable antivirus
cmd - run as admin
Posted
Comments
Richard Deeming 18-Aug-16 11:26am    
The problem is with the single quote (') in your username - one of the PowerShell scripts hasn't escaped it properly, giving you an unterminated string error.

You should report this on the GitHub site:
https://github.com/aspnet/Home/issues[^]
vivvicks 19-Aug-16 0:38am    
thanks for ur reply..u r right..i have identified the same and then i have created a new user account and its work fine for me...

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900