Giter Site home page Giter Site logo

nodejs-basics-tutorial's Introduction

Repository holding the source code of my node.js series on YouTube.

nodejs-basics-tutorial's People

Contributors

smax22 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

nodejs-basics-tutorial's Issues

TypeError: db.collection is not a function

Using the mongodb library version 3.1.1 Gives the above error while performing any of the database transactions

**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)

not a package error

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

AssertionError [ERR_ASSERTION]: Task function must be specified , what to do now

I found an error like expressValidator is not a function

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.