farahat80/react-open-weather

using this project

cikidano opened this issue · 0 comments

Hello,

i want to use this project but when I import it with github, and start it with visual studio code in terminal with "npm start",
it gives me the following error message:

`Der Befehl "webpack" ist entweder falsch geschrieben oder
konnte nicht gefunden werden. // It means that it cannot find webpack. 
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! react-open-weather@1.1.5 start: `webpack serve --config webpack.config.dev.js --mode development`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the react-open-weather@1.1.5 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm WARN Local package.json exists, but node_modules missing, did you mean to install?

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\Admin\AppData\Roaming\npm-cache\_logs\2021-06-11T07_01_01_957Z-debug.log`

But what I have to do? When I import this project for example with github desktop, all needed npm installs, arent they included automatically? How can I know, which I have to install into this project after importing it?

When I download this project as Zip, following error comes after installing webpack and starting with npm start:

Error: listen EACCES: permission denied 127.0.0.1:8080 at Server.setupListenHandle [as _listen2] (net.js:1301:21) at listenInCluster (net.js:1366:12) at GetAddrInfoReqWrap.doListen [as callback] (net.js:1503:7) at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:69:8) { code: 'EACCES', errno: -4092, syscall: 'listen', address: '127.0.0.1', port: 8080

please help me...thank you

EDIT: solved with

devServer: {
// ...
host: '0.0.0.0',
port: 80,
// ...
}