Skip to content

404 when installing dependencies #6221

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
ylerjen opened this issue May 8, 2017 · 2 comments
Closed

404 when installing dependencies #6221

ylerjen opened this issue May 8, 2017 · 2 comments

Comments

@ylerjen
Copy link

ylerjen commented May 8, 2017

Bug Report or Feature Request (mark with an x)

- [x] bug report -> please search issues before submitting
- [ ] feature request

When installing a new project with the angular-cli, the packages installation ends with status code 404 with packages like compiler-cli@4.1.1

Versions.

@angular/cli: 1.0.2
node: 6.10.0
os: win32 x64

Repro steps.

  1. cli installed globally
  2. create new project : ng new foo
  3. it creates files but then at the npm install task I got 404 for compiler-cli-4.1.1

The log given by the failure.

1208 info attempt registry request try #1 at 3:44:45 PM
1209 http fetch GET https://packages.myorganisation.org/artifactory/api/npm/npm-repo/@angular/compiler-cli/-/compiler-cli-4.1.1.tgz
1210 http fetch 404 https://packages.myorganisation.org/artifactory/api/npm/npm-repo/@angular/compiler-cli/-/compiler-cli-4.1.1.tgz
1211 error fetch failed https://packages.myorganisation.org/artifactory/api/npm/npm-repo/@angular/compiler-cli/-/compiler-cli-4.1.1.tgz
1212 warn retry will retry, error on last attempt: Error: fetch failed with status code 404
1213 info retry fetch attempt 3 at 3:45:45 PM
1214 info attempt registry request try #1 at 3:45:45 PM
1215 http fetch GET https://packages.myorganisation.org/artifactory/api/npm/npm-repo/@angular/compiler-cli/-/compiler-cli-4.1.1.tgz
1216 http fetch 404 https://packages.myorganisation.org/artifactory/api/npm/npm-repo/@angular/compiler-cli/-/compiler-cli-4.1.1.tgz
1217 error fetch failed https://packages.myorganisation.org/artifactory/api/npm/npm-repo/@angular/compiler-cli/-/compiler-cli-4.1.1.tgz
1218 silly rollbackFailedOptional Starting
1219 silly rollbackFailedOptional Finishing
1220 silly runTopLevelLifecycles Finishing
1221 silly install printInstalled
1222 verbose stack Error: fetch failed with status code 404
1222 verbose stack at Request. (C:\dev\nodejs\node_modules\npm\node_modules\npm-registry-client\lib\fetch.js:51:14)
1222 verbose stack at emitOne (events.js:96:13)
1222 verbose stack at Request.emit (events.js:188:7)
1222 verbose stack at Request.onRequestResponse (C:\dev\nodejs\node_modules\npm\node_modules\request\request.js:954:10)
1222 verbose stack at emitOne (events.js:96:13)
1222 verbose stack at ClientRequest.emit (events.js:188:7)
1222 verbose stack at HTTPParser.parserOnIncomingClient [as onIncoming] (_http_client.js:474:21)
1222 verbose stack at HTTPParser.parserOnHeadersComplete (_http_common.js:99:23)
1222 verbose stack at TLSSocket.socketOnData (_http_client.js:363:20)
1222 verbose stack at emitOne (events.js:96:13)
1222 verbose stack at TLSSocket.emit (events.js:188:7)
1223 verbose cwd C:\dev\test-ng-cli
1224 error Windows_NT 10.0.10586
1225 error argv "C:\dev\nodejs\node.exe" "C:\dev\nodejs\node_modules\npm\bin\npm-cli.js" "--quiet" "install"
1226 error node v6.10.0
1227 error npm v3.10.10
1228 error fetch failed with status code 404
1229 error If you need help, you may report this error at:
1229 error https://github.com/npm/npm/issues
1230 verbose exit [ 1, true ]

@filipesilva
Copy link
Contributor

You seem to be using a npm proxy or something:

1217 error fetch failed https://packages.myorganisation.org/artifactory/api/npm/npm-repo/@angular/compiler-cli/-/compiler-cli-4.1.1.tgz

You'll have to check your proxy settings, or update your proxy to include these packages.

A better place to ask about how to do this is https://github.com/npm/npm/issues or Stack Overflow.

@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 7, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants