Skip to content
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

I am facing a issue when i try to run the application. Kindly help me to resolve #125

Open
inspiremithun opened this issue May 7, 2023 · 4 comments
Labels
documentation Improvements or additions to documentation

Comments

@inspiremithun
Copy link

Hi thanks in advance.I followed the steps which was given in the "Running the Application" section
https://github.com/inspiremithun/litefy#running-the-application-

After giving npm install command i got the error as like below

image

then i try to run ng serve i got the below error
image

@mathkruger
Copy link
Owner

Can you provide more info about your dev environment?

  • Node version
  • Angular CLI Version
  • Your machine's OS

@mathkruger mathkruger added the documentation Improvements or additions to documentation label May 18, 2023
@inspiremithun
Copy link
Author

inspiremithun commented May 21, 2023

@mathkruger Thanks for your Reply.

Please find the details of my Dev Env
Node Version: 18.6.0
Angular CLI Version : 16.0.0
Machine's OS : Windows 10

image

@aidasbui
Copy link

@inspiremithun @mathkruger I've just forked the repo and tried installing the dependencies to run into the same result. It looks like:

  • This repo needs an .nvmrc file to state the node version used and to avoid conflicting node version issues.
  • There's a yarn.lock file in addition to the package-lock.json, and running yarn installs dependencies without errors.

I personally think that using two package managers in a project is an antipattern and may cause additional dependency issues, though I'm certainly not an expert. The README instructions should be updated to include yarn as well, in any case.

My environment:

  • 6.3.8-arch1-1 (Arch Linux)
  • node v18.12.1
  • npm v8.19.2
  • yarn v1.22.19

@zeeshanchana95
Copy link

@inspiremithun I have just taken a look at your issue and that issue probably occur due to a version mismatch between your current dependencies versions installed on your machine and the versions listed on package.json or package-lock.json.

So, I forked your repo and cloned on my machine and after running the command npm install, I got the same error that you got.

To fix that issue, I apply the following steps:

  1. use the command npm install --force
    Then got the following error
    image
    Which is basically related to the proxy server, but that was not actually about the proxy server, it occurred due to a cache problem.

  2. I use the command npm cache clean --force to clean the cache

  3. use the command, npm install --force, it successfully installed dependencies

  4. then, it installed angular by command npm install -g @angular/cli --force

  5. run command, ng server, it successfully started the server and during compilation, I got the following error which is related to a Node.js version mismatch.
    image
    So, try to use the same version of Nodejs which is compatible with functions used in the code, or try to use other solutions.

I hope the above steps might be helpful.

My Environment:

  • Node Version: v18.16.0
  • npm version: 9.6.2
  • Angular CLI Version: 10.2.4
  • OS: Windows 10

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

4 participants