Questions tagged [serve]

Simple 5 minute command-line file / directory server built with connect, inspired by nodejitsu's http-server to show off the simplicity and flexibility of connect as a modular server.

272 questions
91
votes
12 answers

Error: Can't resolve 'core-js/es7/reflect' in '\node_modules\@angular-devkit\build-angular\src\angular-cli-files\models

After updating to Angular 7.3.6, I get the following error on ng serve: ERROR in ./node_modules/@angular-devkit/build-angular/src/angular-cli-files/models/jit-polyfills.js Module not found: Error: Can't resolve 'core-js/es7/reflect' in …
Bronsii
  • 1,023
  • 1
  • 7
  • 10
44
votes
14 answers

angular ng serve command throws error: An unhandled exception occurred: Project does not exist

I am trying to up my local angular dev env using ng serve, it was working perfectly fine a day back, but now every time I run ng serve or npm start it throws an error: An unhandled exception occurred: Project does not exist. I have tried running…
Jatinder
  • 732
  • 1
  • 6
  • 12
36
votes
7 answers

npm command 'serve ' not found, although it is installed

I have installed serve with npm as "npm install serve -g" and also with yarn "yarn global add serve", but when I try to run "serve -s build" it says that "Command 'serve' not found.
Roland
  • 885
  • 3
  • 12
  • 16
35
votes
5 answers

How to stop npm serve

I've build React Apps: npm run build and installed globally serve package: npm install -g serve and run it: serve -s build How do I stop it? I've tried serve help but it doesn't show any stop option Options: -a, --auth Serve behind basic…
JMS786
  • 1,103
  • 2
  • 11
  • 22
15
votes
4 answers

node_modules appears empty, you may need to run `npm install`

I have cloned an Angular 4 project from git. When I go to the root folder of the project and executed ng serve. I am getting following error: node_modules appears empty, you may need to run `npm install` How can I fix the above error?
karunakar bhogyari
  • 622
  • 1
  • 8
  • 16
14
votes
5 answers

React build run on server using pm2

I have compiled my react app using react-scripts build And it generated a build\ folder in the root directory of App. I am running the build\ folder using sudo serve -T -p 443 build/ This runs my React app successfully on HTTPS since I am passing…
RDoonds
  • 485
  • 2
  • 6
  • 19
11
votes
9 answers

Fatal error: Uncaught ReflectionException: Class config does not exist

I'm working on an e-commerce project on Laravel 5.8, but since I accidently ran "laravel new" command on the project's folder I get this error when I'm trying to launch the project on a local server: Fatal error: Uncaught ReflectionException:…
IbraProjects
  • 121
  • 1
  • 2
  • 5
9
votes
3 answers

How to configure pm2 serve command to serve multi-page React app?

I created a ReactJS application using Create-React-App, and wanted to deploy it on a Linux server. I followed a tutorial that showed how to do so very simply by installing pm2 and serve, then after running the command: npm run build I ran the…
Karim Taha
  • 1,151
  • 3
  • 9
  • 14
8
votes
1 answer

can't run ng serve in development mode

I can't run ng servein development mode. I've upgraded Angular v11 to v12. Since then, I have compiling delays and development mode appears to not be enabled. I'm always getting this…
8
votes
4 answers

React serve -s build, The term 'serve' is not recognized as the name of a cmdlet

Hello I am trying to build my react app so I did yarn build and it created the necessary folder now I am trying to do serve -s build and it's telling me the error below ** I have tried to uninstall and reinstall serve by npm uninstall -g serve and…
Altro
  • 878
  • 1
  • 7
  • 23
8
votes
2 answers

'serve' is not recognized as an internal or external command to run react app

serve has been installed globally using npm install -g serve command and It works locally, but deploying to a Windows server gives the following error: "serve" is not recognized as an internal or external command How to fix this error? Also, what…
Rahul Kumar
  • 103
  • 1
  • 1
  • 6
8
votes
1 answer

Location Proxy with npm serve

If I'm serving a react application with npm install -g serve; serve -s build, is it possible to also have a location proxy? Ex: any requests to https://example.com/api/* will be redirected to https://example.com:8000/api/*
cclloyd
  • 8,171
  • 16
  • 57
  • 104
7
votes
3 answers

React app showing page with "404 the requested path could not be found" when using Apache

I am deploying a React app to my Apache server. I can access the app on my-ip:5001, but when I go to my domain it gives me "404 the requested path could not be found". Btw. the domain has been set up and worked with an html file before working…
DevB2F
  • 4,674
  • 4
  • 36
  • 60
7
votes
1 answer

Serve static folder with symfony 4

I want to copy my dist folder generated by Vue.js and serve it on a symfony route, I tried: routes.yaml vue: path: /{path} controller: App\Controller\ApiController::vue methods: [GET] requirements: path: .* ApiController.php public…
Leonardo
  • 237
  • 1
  • 10
7
votes
3 answers

Npm run serve Error

I have a problem with running the command : npm run serve to fix it i need to logout or reboot my Ubuntu 16.04 I have checked the running tasks and node is not running. I have also uninstalled node and npm and installed again with NVM but i still…
Majed Fayazi
  • 553
  • 1
  • 4
  • 13
1
2 3
18 19