GithubHelp home page GithubHelp logo

Comments (7)

DanWahlin avatar DanWahlin commented on May 16, 2024 1

Thanks for the info. I don't run Linux so I can't support that unfortunately (or even try it). Here's what I'd recommend:

Run the following commands in separate command windows:

  1. npm run tsc:w
  2. node server.js

I'm guessing the concurrently module may be the problem on Linux. Try running the commands separately and let me know if that works for you. The JumpStart app is using the same setup as the Angular docs recommend so I'm guessing their demos may have a problem on Linux as well.

from angular-jumpstart.

DanWahlin avatar DanWahlin commented on May 16, 2024

Sorry you're running into an issue. I just ran the latest build on both Mac and Windows without any issues so I'm not sure what the problem may be there. I'd recommend re-extracting the code (make sure you have the latest) and running npm install and npm start again.

I haven't seen this particular error (and as mentioned can't duplicate it) so I can only guess that npm install may not have installed everything correctly. If you're running it on Linux I don't have a way to test that unfortunately right now but Mac and Windows seem to be working correctly.

from angular-jumpstart.

tdungnguyen avatar tdungnguyen commented on May 16, 2024

@DanWahlin thank you Mr. Wahlin! I'll try the way you recommended

from angular-jumpstart.

tdungnguyen avatar tdungnguyen commented on May 16, 2024

@DanWahlin It seems that I found the root cause of this issue: fsevents does not support for npm on Linux environment. Since you mentioned that you ran the build on Mac and Windows only, I guess that without fsevents the project can not be started with npm start command.
I suggest that you should put a short notice of possible OS deployment

from angular-jumpstart.

DanWahlin avatar DanWahlin commented on May 16, 2024

I just realized that several of my other projects using Docker (on Linux) have the same general setup and they're working OK so I suspect something else is going on. They use the exact same npm start command that uses concurrently to run tsc:w and node server.js. Here's an example:

https://github.com/DanWahlin/Angular-RESTfulService

I don't have a way to run this particular project on Linux right now (without creating a Docker environment anyway) but I have several others that are more involved that seem to be working OK. I'm not sure that fsevents is the problem actually (especially since you'll see warnings about that module on Mac and Windows as well).

from angular-jumpstart.

tdungnguyen avatar tdungnguyen commented on May 16, 2024

@DanWahlin Wow! Like you did recommended me to run both commands. At first, I was able to run localhost on port 3000 but nothing came up. I tried to re-run node server.js several times while keeping command npm run tsc:w running, and it works.
In here I just deploy a demo on so I did skipped Docker in this case. I guess that I have to learn more.
Thank you very much!
p/s: I immediately regret my conclusion about fsevents

from angular-jumpstart.

DanWahlin avatar DanWahlin commented on May 16, 2024

No problem - I've seen that fsevents error as well and it definitely makes it feel like it's the main problem sometimes when it isn't. Glad you got it going. I'm not sure why the concurrently module isn't working for you since I have it working in other scenarios with Docker/Linux, but if you have it going now by running separate commands that's great.

from angular-jumpstart.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.