jasongin / nvs

Node Version Switcher - A cross-platform tool for switching between versions and forks of Node.js
Other
2.74k stars 210 forks source link

Error when setting auto on when using cmder #147

Open dsbert opened 5 years ago

dsbert commented 5 years ago

When using nvs auto on I get the following error.

I'm trying to do this using cmder and I've tried both with powershell 5 and powershell 6

New-Module : Cannot write to function prompt because it is read-only or constant.
At C:\Users\.\scoop\apps\nvs\current\nodejs\nvs_tmp_440774057.ps1:4 char:1
+ New-Module -Script {
+ ~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : WriteError: (prompt:String) [New-Module], SessionStateUnauthorizedAccessException
    + FullyQualifiedErrorId : FunctionNotWritable,Microsoft.PowerShell.Commands.NewModuleCommand
jasongin commented 5 years ago

It looks like this is a cmder issue with a fix available: https://github.com/cmderdev/cmder/issues/1736