-
Notifications
You must be signed in to change notification settings - Fork 12k
Deleteing node_modules causes "You seem to not be depending on "@angular/core"." #6504
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
Comments
@EekoS It's the desired behavior you must install the node modules before you run the project. It's not specific to |
facing same issue. Any solution for these. Even npm install not installing anything. ng --version _ _ ____ _ ___ / \ _ __ __ _ _ _| | __ _ _ __ / ___| | |_ _| / △ \ | '_ \ / _` | | | | |/ _` | '__| | | | | | | / ___ \| | | | (_| | |_| | | (_| | | | |___| |___ | | /_/ \_\_| |_|\__, |\__,_|_|\__,_|_| \____|_____|___| |___/ @angular/cli: 1.0.3 node: 7.6.0 os: linux x64 @angular/common: error @angular/compiler: error @angular/core: error @angular/forms: error @angular/http: error @angular/platform-browser: error @angular/platform-browser-dynamic: error @angular/router: error @angular/cli: error @angular/compiler-cli: error |
@EekoS For current workaround I change version to 0.0.0 and it working fine. This may be a bug. |
@shabbir-dhangot @EekoS Is there a repo I can check? |
Thank you for the reply, @sumitarora, I humbly don't see a reason why won't angular-cli simply call the package-builder ( |
@EekoS we have error already in the commands itself. Running |
nope, that's not what I get. see the original post... |
I ran into this same issue deploying an app using ng-cli to Heroku. On the Heroku deploy, I was getting the |
@sumitarora: like you, when I rename my node_modules directory and run |
lo solucione con: |
npm link fixed mine. windows 10 here. latest angular cli as of now. |
npm link |
solution: |
It seems to be related to renaming the folder. The error message is misleading. |
Thanks for reporting this issue. In the latest CLI the error message should be more clear
Please update to the most recent Angular CLI version. If the problem persists, please file a new issue and ensure you provide all of the required information when filling out the issue template. |
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. |
Repro steps.
yarn global add @angular/cli@1.0.6
ornpm install -g @angular/cli@1.0.6
(both produce the same)ng new myproj
ng serve
- worksnode_modules
directory5.1. one can simply run
move node_modules node_modules2
instead of steps 5+6ng b
-> produces:You seem to not be depending on "@angular/core". This is an error.
ng serve
-> produces:Only
yarn add
ornpm install
will resolve this, which is somewhat unexpected (I am in the Angular CLI realm now, trying to build, why won't it solve my dependencies itself?)Desired functionality.
I expected the angular-cli to successfully build the project and download all the dependencies.
The text was updated successfully, but these errors were encountered: