0

Buen dia;

ya instale NodeJs y en símbolo del sistema verifique la versión, como NodeJs por defecto trae npm, verifique tambien la versión del npm, todo OK hasta que voy a intalar Angula CLI version 12.1.4 y me aparece este error:

C:\Users\egonzalez>npm install -g @angular/cli12-1-4 npm ERR! code E404 npm ERR! 404 Not Found - GET https://registry.npmjs.org/@angular%2fcli12-1-4 - Not found npm ERR! 404 npm ERR! 404 '@angular/cli12-1-4@latest' is not in the npm registry. npm ERR! 404 You should bug the author to publish it (or use the name yourself!) npm ERR! 404 npm ERR! 404 Note that you can also install from a npm ERR! 404 tarball, folder, http url, or git url.

npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\egonzalez\AppData\Roaming\npm-cache_logs\2022-08-01T15_46_00_538Z-debug.log

C:\Users\egonzalez>npm install -g @angular/cli12.1.4 npm ERR! code E404 npm ERR! 404 Not Found - GET https://registry.npmjs.org/@angular%2fcli12.1.4 - Not found npm ERR! 404 npm ERR! 404 '@angular/cli12.1.4@latest' is not in the npm registry. npm ERR! 404 You should bug the author to publish it (or use the name yourself!) npm ERR! 404 npm ERR! 404 Note that you can also install from a npm ERR! 404 tarball, folder, http url, or git url.

npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\egonzalez\AppData\Roaming\npm-cache_logs\2022-08-01T15_46_09_398Z-debug.log

Me podrian ayudar? pues no entiendo el error.

10
  • npm install -g @angular/[email protected]
    – Lobos
    el 1 ago. 2022 a las 16:46
  • Hola, pregunta, si ya esta instalada otra versión? como hago para tener la que requiero, hay que desinstalar y instalar de nuevo angular? el 1 ago. 2022 a las 16:58
  • No es necesario, se reemplaza automáticamente.
    – Lobos
    el 1 ago. 2022 a las 17:10
  • lo reemplace y me aparece esto: Error: You need to specify a command before moving on. Use '--help' to view the available commands. el 1 ago. 2022 a las 18:40
  • 1
    con estos comandos? $ npm uninstall -g @angular/cli $ npm cache clean $ npm install -g @angular/cli el 1 ago. 2022 a las 19:22

1 respuesta 1

0

Para separar las versiones mayores de las menores tienes que utilizar el punto y no el guion, esto es, en lugar de 12-1-4 tienes que escribir 12.1.4. Por otro lado, si estás especificando una versión concreta, como es este caso, no ponga el valor @latest ya que no puedes decirle "instálame esta versión" y decirle "instálame la última" a la vez. Por lo tanto, si quieres instalar la 12.1.4, el comando es

npm install -g @angular/[email protected]

mientras que si quieres instalar la última, has de usar este comando

npm install -g @angular/cli@latest

Tu Respuesta

By clicking “Publica tu respuesta”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

¿No es la respuesta que buscas? Examina otras preguntas con la etiqueta o formula tu propia pregunta.