KimberlyBrooke

KimberlyBrooke

Localhost:3000 not starting

When I go to start localhost:3000 by doing npm start I get the following errors:

‘’’

Starting the development server…

/Users/kimberlybrooke/Desktop/pragstudio-unpacked-graphql-code/getaways/frontend/node_modules/chokidar/lib/fsevents-handler.js:28
return (new fsevents(path)).on(‘fsevent’, callback).start();
^

TypeError: fsevents is not a constructor
at createFSEventsInstance (/Users/kimberlybrooke/Desktop/pragstudio-unpacked-graphql-code/getaways/frontend/node_modules/chokidar/lib/fsevents-handler.js:28:11)
at setFSEventsListener (/Users/kimberlybrooke/Desktop/pragstudio-unpacked-graphql-code/getaways/frontend/node_modules/chokidar/lib/fsevents-handler.js:82:16)
at FSWatcher.FsEventsHandler._watchWithFsEvents (/Users/kimberlybrooke/Desktop/pragstudio-unpacked-graphql-code/getaways/frontend/node_modules/chokidar/lib/fsevents-handler.js:252:16)
at FSWatcher. (/Users/kimberlybrooke/Desktop/pragstudio-unpacked-graphql-code/getaways/frontend/node_modules/chokidar/lib/fsevents-handler.js:386:25)
at LOOP (fs.js:1902:14)
at processTicksAndRejections (internal/process/task_queues.js:77:11)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! getaways-react@0.1.0 start: react-scripts start
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the getaways-react@0.1.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /Users/kimberlybrooke/.npm/_logs/2021-09-07T19_29_17_197Z-debug.log
kimberlybrooke@Kimberlys-MacBook-Pro frontend %

‘’’

and then on the website it says this:

‘’’

This site can’t be reached

localhost refused to connect.

Try:

  • Checking the connection
  • Checking the proxy and the firewall

ERR_CONNECTION_REFUSED

‘’’

First Post!

Sebb

Sebb

To get answers you need to improve your question.
We need at least some context.
Use ``` for code blocks.

Last Post!

crispinb

crispinb

As @kokolegorille suggests, this is an npm (/javascript) issue. These can be a bit of a trial-and-error pain to sort out. I would first check with the pragstudio course docs to be sure that you have the same node/npm versions that they use. Do the pragstudio courses offer somewhere you can ask questions? Npm issues are usually best dealt with by people who have experience with the exact packages involved. Lastly, from the trace you’ve given, it looks like the problem originates in this package: GitHub - paulmillr/chokidar: Minimal and efficient cross-platform file watching library · GitHub. You could try updating to the latest version of that (which may just cause further problems because of related dependencies), and/or look through the issues in that repo.

Where Next?

Popular in Questions Top

nobody
Hi! In PHP: $_SERVER[‘SERVER_ADDR’] - in Elixir? Searched the docs for ip address and the web, no good results. Thanks!
New
vegabook
I’m brand new to Phoenix and I have stripped one of the demo applications to the bone. I just want to get an svg up on the screen. Here i...
New
RisingFromAshes
I’ve read in another post that it may be possible with a router helper - but I couldn’t find an appropriate one, and tbh, I’m still just ...
New
hariharasudhan94
Lets say I have map like this fetching from my database %{"_id" => #BSON.ObjectId<58eb1a7a9ad169198c3dXXXX>, "email" => ...
New
mcarvalho
What is the difference between System.get_env and Application.get_env? For example, what are best practices to use one versus another.
New
Lily
In templates/appointment/index.html.eex: <%= for appointment <- @appointments do %> <tr> <td><%= appoi...
New
sergio_101
I am VERY much an elixir newbie. I have taken one elixir course and one phoenix course on Udemy. During that course, I saw the instructor...
New

Other popular topics Top

electic
Hi, I am new to Elixir. I am trying to use the DateTime component to insert a date into MySQL however the there seems to be no way to fo...
New
Qqwy
Original source of discussion: This topic on the Pragmatic Programmers’ Functional Web Development with Elixir, OTP, and Phoenix forum. ...
New
stefanchrobot
What’s the safe way to decode a JSON string into a struct? I want to avoid calling String.to_atom. Jason.decode can give me a map with st...
New
joeerl
Hello again - after a longish gap I’ve decided I really must dig into Elixir and see what’s been happening here - so I have a few questio...
New
TunkShif
This post is an instruction guide to help you setup your Neovim for Elixir development from scratch. It includes general information on h...
274 42533 114
New
Harrisonl
We have an ECS cluster with 4 services, where each task joins a single cluster, via discovery ECS discovery service. Currently when I de...
New

We're in Beta

About us Mission Statement