jerga99 / bwm-ng Goto Github PK
View Code? Open in Web Editor NEWCourse to create a Airbnb like app in React, Angular and Node
Course to create a Airbnb like app in React, Angular and Node
[HPM] Error occurred while trying to proxy request /api/v1/reviews/5d93337a6acd1f0dc81c26ce/rating from localhost:4200 to http://localhost:3001 (ECONNRESET) (https://nodejs.org/api/errors.html#errors_common_system_errors)
[HPM] Error occurred while trying to proxy request /api/v1/users/5d93337a6acd1f0dc81c26c6 from localhost:4200 to http://localhost:3001 (ECONNREFUSED) (https://nodejs.org/api/errors.html#errors_common_system_errors)
[HPM] Error occurred while trying to proxy request /api/v1/rentals from localhost:4200 to http://localhost:3001 (ECONNREFUSED) (https://nodejs.org/api/errors.html#errors_common_system_errors)
Following error is shown with 'npm start', front-end alone is running good with 'npm start-dev'. How to run the server?
`> [email protected] start /media/ashish/New Volume/Ashish/learn/bwn/bwm-ng-master/server
node index.js
internal/modules/cjs/loader.js:596
throw err;
^
Error: Cannot find module './dev'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:594:15)
at Function.Module._load (internal/modules/cjs/loader.js:520:25)
at Module.require (internal/modules/cjs/loader.js:650:17)
at require (internal/modules/cjs/helpers.js:20:18)
at Object. (/media/ashish/New Volume/Ashish/learn/bwn/bwm-ng-master/server/config/index.js:4:20)
at Module._compile (internal/modules/cjs/loader.js:702:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:713:10)
at Module.load (internal/modules/cjs/loader.js:612:32)
at tryModuleLoad (internal/modules/cjs/loader.js:551:12)
at Function.Module._load (internal/modules/cjs/loader.js:543:3)
at Module.require (internal/modules/cjs/loader.js:650:17)
at require (internal/modules/cjs/helpers.js:20:18)
at Object. (/media/ashish/New Volume/Ashish/learn/bwn/bwm-ng-master/server/index.js:4:16)
at Module._compile (internal/modules/cjs/loader.js:702:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:713:10)
at Module.load (internal/modules/cjs/loader.js:612:32)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: node index.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] 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! /home/ashish/.npm/_logs/2018-08-22T20_21_16_932Z-debug.log
ashish@hp:/media/ashish/New Volume/Ashish/learn/bwn/bwm-ng-master/server$ npm i
npm WARN [email protected] No description
npm WARN [email protected] No repository field.
up to date in 4.308s
found 0 vulnerabilities
`
So the server.js file is missing from this repository (the one you reference in your video), making this whole thing not work. Any pointers?
Thanks in advance!
events.js:174
throw er; // Unhandled 'error' event
^
TypeError: Cannot read property 'ratingAvg' of undefined
at C:\bb\server\controllers\review.js:94:32
at C:\bb\node_modules\mongoose\lib\model.js:4638:16
at C:\bb\node_modules\mongoose\lib\utils.js:264:16
at model.hooks.execPost (C:\bb\node_modules\mongoose\lib\aggregate.js:974:13)
at C:\bb\node_modules\kareem\index.js:135:16
at process._tickCallback (internal/process/next_tick.js:61:11)
Emitted 'error' event at:
[nodemon] app crashed - waiting for file changes before starting...
problem due time picker,time is late one day...i looked in frontend its ok,it sends good date,backend receives good date i console.log it and its ok but result from function isValidBooking i get parameters one day behind.... if i send 2020.04.12 backend receive that date,and after moment.js it sends one day behind and save in mongo 2020.04.11.
thanks
I get the following error as soon as i enter email and password for the login
``
``
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.