-
Notifications
You must be signed in to change notification settings - Fork 12k
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
"You have to be inside an angular-cli project in order to use the build command." due to global and local cli version being out of sync #4379
Comments
fyi, to resolve this problem we did the following:
|
@wardbell the local package.json should be updated to have |
does not work here, still having the error |
@victorblq can you remove |
Check for either angular-cli or @angular/cli in the dependencies of the current project. Fixes angular#4379
Check for either angular-cli or @angular/cli in the dependencies of the current project. Fixes #4379
I fix changing the package.json file this way:
to:
I removed this line too: |
@victorblq yep, only existing packages (created by The next beta adds support for both though. |
Check for either angular-cli or @angular/cli in the dependencies of the current project. Fixes angular#4379
You should run "npm install -g @angular/cli@latest". It solved for me. |
@azollai Thanks |
Yes this worked for me as well thanks |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
note: this was filed by @IgorMinar from wards computer, so blame @IgorMinar for any pain this issue has caused to you.
OS?
MacOS
Versions.
global:
local:
Repro steps.
but if I do:
The text was updated successfully, but these errors were encountered: