Skip to content
This repository has been archived by the owner on Sep 11, 2020. It is now read-only.

power-nvm on docker #4

Open
janstadt opened this issue Aug 20, 2019 · 1 comment
Open

power-nvm on docker #4

janstadt opened this issue Aug 20, 2019 · 1 comment
Assignees

Comments

@janstadt
Copy link

janstadt commented Aug 20, 2019

Attempting to install nvm on a windows docker image and when i call nvm install 10.15.3 I get the following response:

Invoke-WebRequest : The response content cannot be parsed because the Internet
Explorer engine is not available, or Internet Explorer's first-launch
configuration is not complete. Specify the UseBasicParsing parameter and try
again.
At C:\Program
Files\WindowsPowerShell\Modules\power-nvm\1.0.3\power-nvm.psm1:200 char:17
+ ... $versions = Invoke-WebRequest -Uri https://nodejs.org/dist/index.json ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotImplemented: (:) [Invoke-WebRequest], NotSupp
   ortedException
    + FullyQualifiedErrorId : WebCmdletIEDomNotSupportedException,Microsoft.Po
   werShell.Commands.InvokeWebRequestCommand

Please add -UseBasicParsing here: https://github.com/brunolm/nvm/blob/master/src/power-nvm.psm1#L200 so that fresh installs will not error out.

More info here: https://stackoverflow.com/questions/38005341/the-response-content-cannot-be-parsed-because-the-internet-explorer-engine-is-no

@brunolm brunolm self-assigned this Aug 20, 2019
@brunolm
Copy link
Owner

brunolm commented Aug 20, 2019

Let me know if this works out 00df176

Version 1.1.0
https://www.powershellgallery.com/packages/power-nvm/1.1.0

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants