tutorial subir servidor proyecto instalar español descargar crear comandos cli angularjs angular

angularjs - subir - instalar angular 5



Error después de la guía de inicio rápido angularjs2 error 404 ''angular'' no está en el registro npm (5)

Recientemente cloné el código oficial de inicio rápido de AngularJS y ejecuté npm install. Recibí un 404. error 404 ''angular'' no está en el registro de npm. Aquí está mi registro de depuración npm:

17 silly registry.get ''content-length'': ''40'', 517 silly registry.get ''accept-ranges'': ''bytes'', 517 silly registry.get date: ''Tue, 10 May 2016 15:00:17 GMT'', 517 silly registry.get via: ''1.1 varnish'', 517 silly registry.get age: ''0'', 517 silly registry.get connection: ''keep-alive'', 517 silly registry.get ''x-served-by'': ''cache-sin6927-SIN'', 517 silly registry.get ''x-cache'': ''MISS'', 517 silly registry.get ''x-cache-hits'': ''0'', 517 silly registry.get ''x-timer'': ''S1462892417.310196,VS0,VE210'' } ] 518 silly lockFile b50e344d-angular-core-2-0-0-rc-1 angular/[email protected] 519 silly lockFile b50e344d-angular-core-2-0-0-rc-1 angular/[email protected] 520 error 404 ''angular'' is not in the npm registry. 520 error 404 You should bug the author to publish it 520 error 404 520 error 404 Note that you can also install from a 520 error 404 tarball, folder, or http url, or git url. 521 error System Linux 3.19.0-47-generic 522 error command "/usr/bin/nodejs" "/usr/bin/npm" "install" 523 error cwd /home/aayush/try2 524 error node -v v0.10.25 525 error npm -v 1.3.10 526 error code E404 527 verbose exit [ 1, true ]

Aquí está el archivo package.json:

{ "name": "angular2-quickstart", "version": "1.0.0", "description": "QuickStart package.json from the documentation, supplemented with testing support", "scripts": { "start": "tsc && concurrently /"tsc -w/" /"lite-server/" ", "docker-build": "docker build -t ng2-quickstart .", "docker": "npm run docker-build && docker run -it --rm -p 3000:3000 -p 3001:3001 ng2-quickstart", "e2e": "tsc && concurrently /"http-server/" /"protractor protractor.config.js/"", "lint": "tslint ./app/**/*.ts -t verbose", "lite": "lite-server", "postinstall": "typings install", "test": "tsc && concurrently /"tsc -w/" /"karma start karma.conf.js/"", "tsc": "tsc", "tsc:w": "tsc -w", "typings": "typings", "webdriver:update": "webdriver-manager update" }, "keywords": [], "author": "", "license": "ISC", "dependencies": { "@angular/common": "2.0.0-rc.1", "@angular/compiler": "2.0.0-rc.1", "@angular/core": "2.0.0-rc.1", "@angular/http": "2.0.0-rc.1", "@angular/platform-browser": "2.0.0-rc.1", "@angular/platform-browser-dynamic": "2.0.0-rc.1", "@angular/router": "2.0.0-rc.1", "@angular/router-deprecated": "2.0.0-rc.1", "@angular/upgrade": "2.0.0-rc.1", "systemjs": "0.19.27", "es6-shim": "^0.35.0", "reflect-metadata": "^0.1.3", "rxjs": "5.0.0-beta.6", "zone.js": "^0.6.12", "angular2-in-memory-web-api": "0.0.7", "bootstrap": "^3.3.6", "angular": "~1.5.5" }, "devDependencies": { "concurrently": "^2.0.0", "lite-server": "^2.2.0", "typescript": "^1.8.10", "typings": "^0.8.1", "canonical-path": "0.0.2", "http-server": "^0.9.0", "tslint": "^3.7.4", "lodash": "^4.11.1", "jasmine-core": "~2.4.1", "karma": "^0.13.22", "karma-chrome-launcher": "^0.2.3", "karma-cli": "^0.1.2", "karma-htmlfile-reporter": "^0.2.2", "karma-jasmine": "^0.3.8", "protractor": "^3.3.0", "rimraf": "^2.5.2" }, "repository": {} }

Alguien puede decir qué está mal ... qué paquete npm usar y qué cambios de código tendré que hacer en el tutorial oficial de héroes angulares. Gracias


Debe comprobar si su npm y node.js están actualizados (al menos npm 3.xx y node v5.xx, como sugiere el enlace de este equipo angular ). Si no, necesitas actualizarlos (he usado esta publicación para actualizar). Después de esto, cuando ejecuto npm install , el error 404 desaparece, pero todavía tengo el error Darwin 15.5.0. Entonces corro:

sudo npm update -g && sudo npm install -g concurrently lite-server typescript

y desinstale la versión local: npm desinstale lite-server como lo propone este enlace . Pero el error de Darwin aún persiste. Luego elimino toda la carpeta node_modules, ejecuto el comando "npm install" otra vez, ¡y ahora todo está bien!


Estaba teniendo el mismo problema, corriendo en Windows 2012 R2. Terminé simplemente abriendo PowerShell, navegando a la carpeta donde estaba ubicado mi archivo .csproj y luego .csproj el siguiente comando:

npm install


Parece que no sabe a qué registro apuntar, ya que los nombres de los paquetes parecen correctos.

Primero prueba un caché limpio.

npm cache clean

Y si eso no funciona, especifique el registro directamente:

npm install <packagename> --registry http://registry.npmjs.org/


Primera ejecución: npm cache clean

Siguiente: reconstruir npm


Tuve el mismo problema. Entonces, me di cuenta de que estaba usando npm 1.4.3. Actualizado a 3.9.2. No hay problemas para encontrar el repo, ahora!