Repository holding the source code of my node.js series on YouTube.
mschwarzmueller / nodejs-basics-tutorial Goto Github PK
View Code? Open in Web Editor NEWThe source code for my node.js tutorial series
License: MIT License
The source code for my node.js tutorial series
License: MIT License
Repository holding the source code of my node.js series on YouTube.
**TypeError: db.collection is not a function** at /home/brian-kamau/WebstormProjects/Node_Js_Basics/08_mongo_db/routes/index.js:42:12 at result (/home/brian-kamau/WebstormProjects/Node_Js_Basics/08_mongo_db/node_modules/mongodb/lib/utils.js:414:17) at executeCallback (/home/brian-kamau/WebstormProjects/Node_Js_Basics/08_mongo_db/node_modules/mongodb/lib/utils.js:406:9) at err (/home/brian-kamau/WebstormProjects/Node_Js_Basics/08_mongo_db/node_modules/mongodb/lib/operations/mongo_client_ops.js:285:5) at connectCallback (/home/brian-kamau/WebstormProjects/Node_Js_Basics/08_mongo_db/node_modules/mongodb/lib/operations/mongo_client_ops.js:240:5) at process.nextTick (/home/brian-kamau/WebstormProjects/Node_Js_Basics/08_mongo_db/node_modules/mongodb/lib/operations/mongo_client_ops.js:436:7) at _combinedTickCallback (internal/process/next_tick.js:131:7) at process._tickCallback (internal/process/next_tick.js:180:9)
Thanks for this awesome project and youtube series... Question, I downloaded the zip file for the repository and after cd to .../nodejs-basics-tutorial-master/09-mongodb/ , attempted to run sudo npm install package.json
and get npm ERR! not a package
response.
I updated npm to the latest version also, thinking that might be the issue.
What do I need to change in package.json so its recognized as a valid package?
AssertionError [ERR_ASSERTION]: Task function must be specified , what to do now
Here, It's my error...
.
.
.
npm start
[email protected] start C:\Users\JEET\Desktop\NodeJs\nodeProjects\ValidationSession
node ./bin/www
C:\Users\JEET\Desktop\NodeJs\nodeProjects\ValidationSession\app.js:24
app.use(expressValidator());
### ^
TypeError: expressValidator is not a function
at Object. (C:\Users\JEET\Desktop\NodeJs\nodeProjects\ValidationSession\app.js:24:9)
at Module._compile (internal/modules/cjs/loader.js:776:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:787:10)
at Module.load (internal/modules/cjs/loader.js:643:32)
at Function.Module._load (internal/modules/cjs/loader.js:556:12)
at Module.require (internal/modules/cjs/loader.js:683:19)
at require (internal/modules/cjs/helpers.js:16:16)
at Object. (C:\Users\JEET\Desktop\NodeJs\nodeProjects\ValidationSession\bin\www:7:11)
at Module._compile (internal/modules/cjs/loader.js:776:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:787:10)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: node ./bin/www
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.
@mschwarzmueller this repo is missing the code of the two last lectures you made on your youtube node.js basics series.
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.