Comments (7)
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:
- npm run tsc:w
- 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.
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.
@DanWahlin thank you Mr. Wahlin! I'll try the way you recommended
from angular-jumpstart.
@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.
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.
@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.
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)
- Not able to run this. Please help HOT 1
- Reuesting for angular universal concept to cover HOT 1
- What is the login? HOT 1
- How do I hide the overlay if a request fails or give an error? HOT 1
- Not able to login in this app HOT 5
- application is not working HOT 1
- Not able to build the project HOT 5
- Issue Running ng build --watch HOT 1
- Application Code HOT 2
- Sorting Service HOT 4
- Getting 404 for all services HOT 3
- Need Documentation for clear idea about the code HOT 1
- Problem deploying this app on local tomcat HOT 1
- Not able to see customer details on opening "http://localhost:4200/customers" HOT 3
- Failed to load module script HOT 2
- can not start project HOT 9
- [Error] TypeError: ‘text/html’ is not a valid JavaScript MIME type. promiseReactionJob HOT 7
- Angular Playground fails to compile HOT 2
- Local API Error Handling Not working HOT 1
- running deno HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from angular-jumpstart.