-
Notifications
You must be signed in to change notification settings - Fork 4k
"Unable to resolve dependency tree" error during NPM install of APM-Start #143
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
Did you see any errors after running Did you run Try this:
Let me know if that resolves the issue. |
The error I posted is the error that occurs when I attempt to run I decided to run
|
I haven't seen that error before. Had you done anything else? Or installed anything else into that folder? What version of node and npm do you have? Reading this: https://stackoverflow.com/questions/64573177/unable-to-resolve-dependency-tree-error-when-installing-npm-packages Suggests trying:
But I don't know why you would suddenly see this. The dependencies in the package.json file should all be compatible unless something else was installed to modify it. EDIT: |
I talked to a coworker who was also taking the course and was encountering the same issue. He had figured out that updating the Angular dependencies to the latest 10.x release (~10.2.4 for most I could make a PR with the package.json updates, though if it's not reproducible on machines other than the two of ours it's probably worth investigating more before applying a fix. Versions of potentially relevant things below: OS: Mac OSX Big Sur 11.1 Let me know if there's any other information I could provide that might help. |
Thank you for the additional information. I'll spend some more time on it today, trying it on several machines, and I'll update the code as needed. |
@DeborahK I'm having similar problem. I have the following Specs:
I also ran npm cache verify
When I ran
The exercise files from Pluralsight (which target angualr 9) seem to compile just fine. I simply copied the contentsof the packages.json file from exercise folder on to packages.json file from GitHub, and I was able to compile without issues. Not sure what is happening since I'm a newbie to all this. If you can help me figure out what I should do, that will be great. Perhaps I can continue the course with angular 9 from the exercise files? Or you think I should pursue the angular 10 track if that's going to affect the learning process. I'm attaching here a zip file with 2 packages.json files for your reference; one taken originally from GitHub APM-start and other from Exercises on Pluralsight Thanks, |
@DeborahK Just wanted to update you that I was able to compile successfully with GitHub APM-Start version (that uses angular 10). I realized I had installed latest version of node.js instead of the LTS. I uninstalled node.js and installed again, this time using LTS. My current versions are:
Since I'm a newbie, I think I'll just focus on learning via the course outline and lectures rather than diving into unchartered territory! Thanks |
Hi @mnaeem76 Sounds like you were able to move forward. Let me know if you have any further questions. And thank you for letting me know that the exercise files were not updated to Angular v10. |
Got this error in my personal repo It looks like it happened to me due to the new version of lock file which was not supported by a lower version of npm. I also got the following message:
deleting the node_modules and re-generating lock file helped in my case. |
it is because of a compatibility issue between npm and ng |
Just in case, I did have similar behavior, when I tried either |
I'm undergoing the same. |
The first thing to check is to ensure you are using the "LTS" version of node, NOT the "current" version of node. Then try this:
Let me know if that resolves your issue. |
Sometimes you should be downgrade your npm version, run |
After upgrading to the latest Angular cli, when I run ./node_modules/@angular-devkit/build-angular/src/webpack/es5-polyfills.js:106:0-37 - Error: Module not found: Error: Can't resolve 'zone.js/plugins/zone-legacy' in 'C:\Users\Joshua\App\node_modules@angular-devkit\build-angular\src\webpack' I have tried every solution and suggestion in the posts that exist about Does anyone know how to fix this in the latest Angular version? |
Running into the exact same issue as you. |
What version of the Angular CLI are you using? When you updated the Angular CLI version, did you update the version of the Angular libraries in the project as well? (The locally installed version of the Angular CLI should match with its associated version of the Angular libraries in the project.) What happens if you delete your package-lock.json file and your node-modules folder and you re-run |
Hi Deborah, actually I was able to fix the issue and I landed on this page from someone else's tutorial that was giving me the same error as HJosh had, but what I did to fix my environemnt was copy |
I tried all the solutions provided on this page. None of them worked for me. I am using npm version 8.1.0. ERROR: npm ERR! A complete log of this run can be found in: When I tried to use --force, or --legacy-peer-deps option the command executes forever (command doesn't return any result). Please provide some solution to this issue. |
@amit-jadhav This github repo contains the code for my Angular: Getting Started course. It doesn't look like the code you are compiling is from this course. If you have a more general Angular question, please post to stackoverflow.com. That said, reading your error message, it sounds like your Angular project is v8, but your ag-grid is looking for Angular v9. It's important to ensure you have appropriate versions of third party components that match the version of Angular you have. (Angular is now on v13) Hope you can resolve your issue. |
我的是node版本太高了,重新安装对应版本就行 |
I want to see you. |
node version : lts/gallium -> v16.14.0 npm ERR! A complete log of this run can be found in: node version : lts/fermium -> v14.19.0 Works fine without error. |
This issue seems better posted to the Angular/CLI repo so the team responsible for the CLI can help. |
Having the same issue when trying to add bootstrap
Angular CLI: 13.0.4 |
The course uses bootstrap, not ng-bootstrap. Which were you trying to install? |
Hello, 1-Delete node_module folder and the package-lock.json file. stack: Error: Command failed: npm install |
This is not working and throwing above error while direct deploying on azure from VS code. |
I have tried this one, and it's working fine without any errors. |
@DeborahK Dear Ms. Kurata. Thank you for all the great information and the courses. I appreciate your style of teaching and your courses very much. Looks like I also ran into the same issue as the rest of the comments here, which apparantly have to do with Node Versions and Ng version. Based on information provided from @mnaeem76 ( thanks) My Question: What are the enhanced and added changes we need to learn to augment the Reactive Forms course that you have provided? Thanks again for a great course and information RM |
I encountered a similar error in React, and running , |
Uh oh!
There was an error while loading. Please reload this page.
I am using the Angular: Getting Started Pluralsight lesson and I am attempting to run npm install on the APM-Start folder found in the repository. I am receiving this error message, not entirely sure what it means but I think it might indicate a mismatched version somewhere? I have some experience with npm in the past, though I've never been good at troubleshooting it.
How would I resolve this issue?
The text was updated successfully, but these errors were encountered: