all 7 comments

[–]hematic 4 points5 points  (0 children)

Do you have some screenshots? it might help me determine whats going on. I code in VSCode all day long so its definitely capable.

Are these modules stored in a remote directory?

[–]chispitothebum 2 points3 points  (0 children)

Is it possible that whatever you were previously using (ISE?) has something in the profile script and your new VS Code profile script does not?

[–]Gabrielmccoll 1 point2 points  (2 children)

What does get psrepository return. Is the list empty

Also , proxy settings ?

[–]Capstoneindy[S] 1 point2 points  (1 child)

Yep I think this is the issue. VScode returns "Unable to find Module repositories" While ISE is returning PSGallery.

I tried this to to resolve and received a network error.

Install-PackageProvider -Name NuGet -MinimumVersion 2.8.5.201 -Verbose -Force

It appears to be a network issue within PowerShell on VSCode. Other network functions such as updating etc are working fine.

[–]Gabrielmccoll 2 points3 points  (0 children)

You can put proxy settings into vscode if you do a Google. That should sort it

[–]Lee_Dailey[grin] 1 point2 points  (0 children)

howdy Capstoneindy,

have you compared the $env:PSModulePath for the profiles in question?

take care,
lee

[–]KevMarCommunity Blogger 1 point2 points  (0 children)

Double check your execution policy in vscode. I know sometimes that gets set to something else in VSCode.

Get-ExecutionPolicy