Skip to content

ng update fails when using local library #12977

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
elboukhari opened this issue Nov 16, 2018 · 5 comments
Closed

ng update fails when using local library #12977

elboukhari opened this issue Nov 16, 2018 · 5 comments

Comments

@elboukhari
Copy link

Bug Report or Feature Request (mark with an x)

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

Command (mark with an x)

- [ ] new
- [ ] build
- [ ] serve
- [ ] test
- [ ] e2e
- [ ] generate
- [ ] add
- [x ] update
- [ ] lint
- [ ] xi18n
- [ ] run
- [ ] config
- [ ] help
- [ ] version
- [ ] doc

Versions

node --version : v10.13.0
npm --version : 6.4.1
ng --version :
`
Angular CLI: 7.0.6
Node: 10.13.0
OS: linux x64
Angular: 7.0.4
... animations, cdk, common, compiler, compiler-cli, core, forms
... http, language-service, material, material-moment-adapter
... platform-browser, platform-browser-dynamic, router

Package Version

@angular-devkit/architect 0.10.6
@angular-devkit/build-angular 0.10.6
@angular-devkit/build-optimizer 0.10.6
@angular-devkit/build-webpack 0.10.6
@angular-devkit/core 7.0.6
@angular-devkit/schematics 7.0.6
@angular/cli 7.0.6
@ngtools/webpack 7.0.6
@schematics/angular 7.0.6
@schematics/update 0.10.6
rxjs 6.3.3
typescript 3.1.6
webpack 4.25.1
uname -a : Linux debian 4.9.0-8-amd64 #1 SMP Debian 4.9.130-2 (2018-10-27) x86_64 GNU/Linux`

Repro steps

just type :
ng update

The log given by the failure

Not found : XXXXXX ()

In my package.json this library is declared as :

"dependencies": ... "XXXXXX": "file:lib/xxxxx.tgz", ...

Desired functionality

just ignore local libraries and update angular ones

Mention any other details that might be useful

@alan-agius4
Copy link
Collaborator

alan-agius4 commented Nov 16, 2018

Hi, thanks for reporting this but this should be fixed by #12526 and is available in the v7.1.0-beta.1

If the problem persists after upgrading, please open a new issue, provide a simple repository reproducing the problem, and describe the difference between the expected and current behavior.

@elboukhari
Copy link
Author

Thanks for the replay.
It's not better with : 7.1.0-rc.0

Now it try to get the lib from the npm registry !

404 Not Found - GET https://registry.npmjs.org/XXXXXXX - Not found

@elboukhari
Copy link
Author

I'm still having the issue even with :
"@angular/cli": "7.1.0"

the error is the same as in the previous comment:
404 Not Found - GET https://registry.npmjs.org/XXXXXXX - Not found

@Kim-Andersen
Copy link

Tested in 8.0.3 and not working.

@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 9, 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

3 participants