-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Description
Is there an existing issue for this?
- I have searched the existing issues
This issue exists in the latest npm version
- I am using the latest npm
Current Behavior
Hi to all, I have tried to install Angular following but "ng version" command give me the following output "Angular: " wth following output
Package Version
@angular-devkit/architect 0.2003.1 (cli-only)
@angular-devkit/core 20.3.1 (cli-only)
@angular-devkit/schematics 20.3.1 (cli-only)
@schematics/angular 20.3.1 (cli-only)
Expected Behavior
No response
Steps To Reproduce
Here there are the steps executed into "Windows powershell" (runeed as administrator)
`
Windows PowerShell
Copyright (C) Microsoft Corporation. Tutti i diritti riservati.
Prova la nuova PowerShell multipiattaforma https://aka.ms/pscore6
PS C:\Windows\system32> Get-ExecutionPolicy
Restricted
PS C:\Windows\system32> Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy RemoteSigned
Modifica ai criteri di esecuzione
I criteri di esecuzione facilitano la protezione dagli script non attendibili. La modifica dei criteri di esecuzione
potrebbe esporre l'utente ai rischi di sicurezza descritti nell'argomento della Guida about_Execution_Policies
all'indirizzo https://go.microsoft.com/fwlink/?LinkID=135170. Modificare i criteri di esecuzione?
[S] Sì [T] Sì a tutti [N] No [U] No a tutti [O] Sospendi [?] Guida (il valore predefinito è "N"): S
PS C:\Windows\system32> Get-ExecutionPolicy
RemoteSigned
PS C:\Windows\system32> npm -v
10.9.3
PS C:\Windows\system32> node -v
v22.19.0
PS C:\Windows\system32> npm install -g typescript
added 1 package in 2s
npm notice
npm notice New major version of npm available! 10.9.3 -> 11.6.0
npm notice Changelog: https://github.com/npm/cli/releases/tag/v11.6.0
npm notice To update run: npm install -g [email protected]
npm notice
PS C:\Windows\system32> npm install -g [email protected]
added 1 package in 5s
25 packages are looking for funding
run npm fund for details
PS C:\Windows\system32> run npm fund
run : Termine 'run' non riconosciuto come nome di cmdlet, funzione, programma eseguibile o file script. Controllare
l'ortografia del nome o verificare che il percorso sia incluso e corretto, quindi riprovare.
In riga:1 car:1
run npm fund
- CategoryInfo : ObjectNotFound: (run:String) [], CommandNotFoundException
- FullyQualifiedErrorId : CommandNotFoundException
PS C:\Windows\system32> npm fund
system32
PS C:\Windows\system32> tsc -v
Version 5.9.2
PS C:\Windows\system32> npm install -g @angular/cli
added 348 packages in 13s
68 packages are looking for funding
run npm fund for details
PS C:\Windows\system32> ng version
/ \ _ __ __ _ _ | | __ _ _ __ / | | | |
/ △ \ | ' \ / | | | | |/ _ | '| | | | | | |
/ ___ | | | | (| | || | | (| | | | || | | |
// __| ||, |,||,|| |||
|__/
Angular CLI: 20.3.1
Node: 22.19.0
Package Manager: npm 11.6.0
OS: win32 x64
Angular:
Package Version
@angular-devkit/architect 0.2003.1 (cli-only)
@angular-devkit/core 20.3.1 (cli-only)
@angular-devkit/schematics 20.3.1 (cli-only)
@schematics/angular 20.3.1 (cli-only)
`
There is something that I have omitted or I have wrong or there is a problem of compatibility from a version of one component between "Angular CLI", "Node" or "npm"?
Environment
- npm: 11.6.0
- Node.js: 22.19.0
- OS Name: windows 10 pro
- System Model Name: hp 255 g8
- npm config:
; "builtin" config from C:\Users\Utente\AppData\Roaming\npm\node_modules\npm\npmrc
prefix = "C:\\Users\\Utente\\AppData\\Roaming\\npm"
; node bin location = C:\Program Files\nodejs\node.exe
; node version = v22.19.0
; npm local prefix = C:\Windows\system32
; npm version = 11.6.0
; cwd = C:\Windows\system32
; HOME = C:\Users\Utente
; Run `npm config ls -l` to show all defaults.