Skip to content

'ng update @angular/cli' failed when we use npm package which is use git repo url directly! #11146

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
liwonder opened this issue Jun 7, 2018 · 2 comments

Comments

@liwonder
Copy link

liwonder commented Jun 7, 2018

Bug Report or Feature Request (mark with an x)

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

Area

- [x] devkit
- [ ] schematics

Versions

node version: v8.11.2
npm version: 6.1.0
macOS (High Sierra 10.13.4 (17E202))

Repro steps

we have a package.json file with a dependency using git repo url directly like below:
"dependencies": { "someRepo": "https://github.com/company/someRepo.git", }

I was update our Angular 5.0 project to Angular 6.0, and according to the guideline in 'https://update.angular.io/'

npm install -g @angular/cli
npm install @angular/cli
ng update @angular/cli

The log given by the failure

It will log 'someRepo' not found, and also the angular.json file is not found.

Desired functionality

Mention any other details that might be useful

when I remove this line, the update would be success.
someRepo": "https://github.com/company/someRepo.git

@alan-agius4
Copy link
Collaborator

Duplicate of #10642

@alan-agius4 alan-agius4 marked this as a duplicate of #10642 Oct 11, 2018
@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 8, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants