Puede dar dos tipos de problemas. Al arrancar que diga que hay errores;
1) en el NPM:
En este caso en Terminal como admin:
npm config get prefix
Test-Path "$env:APPDATA\npm"
Si devuelve False, ejecutar:
New-Item -ItemType Directory -Path "$env:APPDATA\npm" -Force
npm list -g --depth=0
npm outdated -g
2) Error en PowerShell 5.
En Terminal como admin:
powershell.exe -NoProfile
Y ejecutar en esa nueva shell:
Código:
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 Install-Module PowerShellGet -RequiredVersion 2.2.6 -Scope AllUsers -Force -AllowClobber exit