Тёмный

Node.js Crash Course Tutorial #5 - NPM 

Net Ninja
Подписаться 1,5 млн
Просмотров 209 тыс.
50% 1

Hey gang, in this Node.js tutorial we'll learn how to use NPM - the node package manager - to install 3rd party packages into our project.
0:00 -- 3rd party packages
1:53 -- installing packages globally (nodemon)
5:02 -- the package.json file & installing packages locally
13:27 -- dependencies & sharing code
🐱‍👤🐱‍👤 JOIN THE GANG -
/ @netninja
----------------------------------------
🐱‍💻 🐱‍💻 My Udemy Courses:
+ Modern JavaScript - www.thenetninja.co.uk/udemy/m...
+ Vue JS & Firebase - www.thenetninja.co.uk/udemy/vu...
+ D3.js & Firebase - www.thenetninja.co.uk/udemy/d...
🐱‍💻 🐱‍💻 Course Files:
github.com/iamshaunjp/node-cr...
🐱‍💻 🐱‍💻 Other Related Free Courses:
+ Modern JavaScript Tutorial - • Modern JavaScript Tuto...
+ HTML & CSS Crash Course - • HTML & CSS Crash Cours...
🐱‍💻 🐱‍💻 Node.js links
+ Download here - nodejs.org/en/download/

Опубликовано:

 

20 июл 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 204   
@TheSlyDragon93
@TheSlyDragon93 4 года назад
Never realised how much easier it is to take it in day by day as apposed to binge cramming when you have the whole course available.
@king998100
@king998100 4 года назад
This is my daily playlist after internships in the train :-D
@user-vq9td7jw7y
@user-vq9td7jw7y Год назад
For anyone having issues because running scripts on your system is disabled: 1) Open Powershell as admin. 2) Type "Set-executionpolicy unrestricted" and answer yes to make the changes. 3) type "get-executionpolicy" to ensure it's been changed to unrestricted.
@megatabdulhaqbinmegatmohda9966
@megatabdulhaqbinmegatmohda9966 9 месяцев назад
Thankyou!
@TheTechGuy-nn4zp
@TheTechGuy-nn4zp 8 месяцев назад
Thank you
@mesomebody9108
@mesomebody9108 8 месяцев назад
Thanks a ton, this helped me out quite a bit.
@thanujalakmini7643
@thanujalakmini7643 6 месяцев назад
Thank you So Much!
@abhilashkashyap6600
@abhilashkashyap6600 6 месяцев назад
thank you!
@mohamedshamoon4827
@mohamedshamoon4827 2 года назад
Wish I found your courses a year ago, would've been a superstar Ninja by now! Good work man, love your work and already bought some courses on your e-learning portal.
@NetNinja
@NetNinja 2 года назад
Awesome, thank you so much!
@IAmSamuelCharpentier
@IAmSamuelCharpentier 4 года назад
I will recomand this to anyone I know that's interested in modern web developement. This is exactly how I would've done it!
@milakozowska9892
@milakozowska9892 2 года назад
Hi, I just want to say thanks for these amazing tutorials. You have an amazing talent for translating difficult concepts into truly digestible ones. Thank you again.
@Covidiousthenineteenth
@Covidiousthenineteenth 2 года назад
When I first tried to learn about smart contracts, tutorials were saying to run npm install and I would follow it without fully understanding why. It makes so much more sense now!
@zac5949
@zac5949 2 года назад
Thank you so much Shaun. I have been looking for a course like this for a long time. Been a fan since when I started your Flutter series. You are a great teacher, keep up the good work and cheers.
@tanmoydutta5846
@tanmoydutta5846 2 года назад
Never thought that such a short course on Node would teach so much.....Very neat....appreciate it
@gaatutube
@gaatutube 4 года назад
Loving this series. So many other courses directly jump into Express and what not and leaves us confused.
@julianstorm7722
@julianstorm7722 3 года назад
Another great video. At 5:53 you can just append the -y flag to the npm init command and automatically skip the questions. Your course structure is excellent and the animations are beautiful. You hear this a lot I guess but you are great at what you are doing. Which means you put a lot of effort and time to get where you are. Respect mate
@kishanparmar4010
@kishanparmar4010 6 месяцев назад
he doesnt want to skip anything in tutorials. he wants to explain how each thing works.
@brianmlambo3306
@brianmlambo3306 4 года назад
Keep going Ninja, I will start watching the whole series when you are done.
@octavian3033
@octavian3033 3 года назад
Learning a lot so far. Never knew there were such nuances to using npm. Great course so far.
@user-jp8iu3je5z
@user-jp8iu3je5z 3 года назад
Amazing course! Can't believe a lecture of this quality is out for free :D
@eyra7550
@eyra7550 Год назад
Another amazing course from you !! Cant thank you enough!!
@markkirzhner2329
@markkirzhner2329 4 года назад
Thank you Ninja! Yore videos are bright and clear. Really helpful to me.
@thedestruction67
@thedestruction67 2 года назад
Im not one to usually comment on tutorials but thank you so much man. I appreciate the way you explain details and making it easy to understand
@NetNinja
@NetNinja 2 года назад
Thanks so much! :)
@harshitverma2707
@harshitverma2707 3 месяца назад
This is still the best explanation playlist for node.js on youtube.
@Shakeel714
@Shakeel714 3 года назад
Very neat and clean, simplified explanation, you are the best tutor.
@kazutonaruhaya3675
@kazutonaruhaya3675 3 года назад
your explanation is crystal clear like a fresh water!
@BunniesAI
@BunniesAI Год назад
I'm sorry to gush, but I *really* love the content you create 🙏 It's so much easier to follow than 99% of the other content creators out there
@NetNinja
@NetNinja Год назад
Aha, I appreciate that :) thanks for your support Nye!
@desirewilliams8313
@desirewilliams8313 3 года назад
Wow this is the best node.js tutorial ever on RU-vid, it has really helped me.
@webdevfreetutorials8501
@webdevfreetutorials8501 2 месяца назад
Absolutely perfect! Totally amazing! Brilliantly explained.
@trendstalkhubb
@trendstalkhubb 11 месяцев назад
Hello Shaun, I really appreciate the effort you put in the course, you are real thing, you really know how to pass knowledge into someone, nice work dude.❤
@RameenFallschirmjager
@RameenFallschirmjager 3 года назад
I started watching this series in the dawn, and when I turned my head and looked out of the window automagically the sun was gone!
@SparrowVivek
@SparrowVivek 3 года назад
sounds a bit poetic... a dark one though
@yanpengwu7501
@yanpengwu7501 4 года назад
I'm always looking forward to your course
@dennisronny3437
@dennisronny3437 2 года назад
Recommended by a friend and I find it awesome just as she said.Awesome!!
@soyabogadodeldiablo
@soyabogadodeldiablo 2 года назад
Thank you so so much for this course, you're the best!!!! I hope you get paid really well because you are doing a great contribution to the community.
@NetNinja
@NetNinja 2 года назад
Thanks so much Dario! :)
@aaron10k
@aaron10k Год назад
I rlly want you to know how effective your teaching style is. Pls don’t stop
@MattiaRuberto
@MattiaRuberto Год назад
You are one of the best teachers on RU-vid. Thanks!
@shuttledeceptor1296
@shuttledeceptor1296 2 месяца назад
Taught from scratch, amazing teaching style and pace.
@NetNinja
@NetNinja 2 месяца назад
Glad you liked it! :) thanks for watching
@thedestruction67
@thedestruction67 2 года назад
Im actually learning. Thank you man!
@ap-cg7mt
@ap-cg7mt Год назад
Your easy-explain-jutsu is legendary!
@noelthomasbejoy3089
@noelthomasbejoy3089 4 года назад
if you're on linux,you might need to do sudo npm install -g nodemon instead.
@nsholk
@nsholk 3 года назад
Noel Thomas Bejoy, thanks so much. That did the trick as a Mac user.
@FreshPrinceOfLDN
@FreshPrinceOfLDN 3 года назад
thanks this really helped
@michaelanthony4750
@michaelanthony4750 2 года назад
that would've been nice to have scrolled down and seen.
@thebigbadwolf422
@thebigbadwolf422 4 года назад
you are a great teacher Shaun!!
@MohamedAmin-jp9xq
@MohamedAmin-jp9xq 2 года назад
You are the best ❤️ you deliver the informations in the simplest possible way
@naywinhlaing7574
@naywinhlaing7574 4 года назад
I cant wait the next lesson !
@themodernmonk7
@themodernmonk7 3 года назад
Wow I learned new things here about Git and npm. I don't know about them and it always confuse me that what the hell is this and where it works. Now I am all clear and understand. Thanks Shaun Sir.
@ivanyosifov2629
@ivanyosifov2629 4 года назад
Hello Shaun. Are you planning on adding authentication to this project? I think it will be great experience to learn authentication with node & express.
@aayushsingh8885
@aayushsingh8885 4 года назад
Yes add this it will be amazing with adding payment options also
@davidgraf9367
@davidgraf9367 4 года назад
Thank you so much for all these informations ! I'm not very good in english but you speak very well. It's a real pleasure to follow you. Best regards
@kunjuperath
@kunjuperath 4 года назад
wow this is the best npm video I've ever seen.
@RHILL-hb1hr
@RHILL-hb1hr 5 месяцев назад
Great course, so glad I found it!
@NetNinja
@NetNinja 5 месяцев назад
Welcome aboard! :)
@alulapetros6048
@alulapetros6048 3 года назад
hallelujah finally I landed in a tutorial that I can actually start learning ! Thank You man !
@stackdeveloper6614
@stackdeveloper6614 4 года назад
Hey shaun, please do a series on styled components as well after completing this node series.
@philippaubert2947
@philippaubert2947 3 года назад
You're saving my life :D A true Ninja worth its salt!
@JanaerTheFirst
@JanaerTheFirst 5 месяцев назад
best tutorial i ever seen in my life nocap
@kostiantynkarzhanov9216
@kostiantynkarzhanov9216 9 месяцев назад
Thanks! Very well explained! 💛
@mehmetziya82
@mehmetziya82 3 года назад
I love your tutorials. thanks.
@yinonb172
@yinonb172 3 года назад
best node.js tutorial ever
@juliocidb
@juliocidb 3 года назад
Thanks dude, always the backend is hard to understand, im taking a course in Codecademy but this part isn't verey clear. This is an amazing content for new developers. Bless bro.
@joanbo2346
@joanbo2346 3 года назад
If anyone has issues with the file "package-lock.json" maybe you can find your answer here: stackoverflow.com/questions/45866533/npm-install-not-creating-a-new-package-lock-json
@gooo1762
@gooo1762 5 месяцев назад
amazing video again. thanks alot!
@NetNinja
@NetNinja 5 месяцев назад
Thanks for watching!
@ralmareztv8189
@ralmareztv8189 4 года назад
It will be great if you can create an angular tutorial and MEAN stack, I really like the how the way you each us
@joachimrosenberger2109
@joachimrosenberger2109 3 года назад
Best tutorial ever!
@OperationAndrew.
@OperationAndrew. 3 года назад
Would npm install update the dependencies etc if there were newer versions than that which was found in the package.json?
@zippytyro
@zippytyro Год назад
Dope course man!
@NetNinja
@NetNinja Год назад
Thanks Shashwat!
@vaasudhand3200
@vaasudhand3200 4 года назад
This guy is using npm packages that sound like pokemon names. :) Net Ninja Rocks
@adnaneafifi4734
@adnaneafifi4734 3 года назад
Thank you very much for this content
@dheerajmadde421
@dheerajmadde421 4 года назад
Daily waiting for your video
@RazelAhmed16
@RazelAhmed16 4 года назад
Thanks sooo much legend 😀
@TrojenMonkey
@TrojenMonkey 9 месяцев назад
If the package-lock.json file does not appear for ya, then write: *npm config set package-lock true* Then run: *npm install* , and it should appear.
@tarekghosn3648
@tarekghosn3648 Год назад
im the kinda guy who comments at the beginning of a video because i know it will be pure gold
@user-mn3iq2cs9n
@user-mn3iq2cs9n 4 года назад
Hi, you're package-lock.json file appears inbetween the last video and this one. I can't get one until I install Express. I'm wondering what you did to get it that we didn't see. You say that we should have it, but I don't, and I don't know why. Thanks. I've never gotten a reply here, but I'm giving it another shot:) thanks for the videos. I've subscribed from 3 accounts.
@ramrawat2037
@ramrawat2037 3 года назад
yes u r absoulty right when i type npm init in my terminal i got only package.json i am unable to understand where to package,json.lock come form
@nizaraffes1954
@nizaraffes1954 3 года назад
Run this command npm install --package-lock-only
@jurajzovinec
@jurajzovinec 3 года назад
@@nizaraffes1954 Thank you sir !
@namanmehta7671
@namanmehta7671 3 года назад
Sorry for being late. npm init only creates package.json and not package-lock.json. it is made only when you install a package to keep track of its version number
@asmereg
@asmereg 3 года назад
Can't thank you enough. ❤
@FxbyyMC
@FxbyyMC 3 года назад
Vrey good crash course!
@22borntobe82
@22borntobe82 4 года назад
Hey! Are you going to update the Angular course? A MEAN stack course'd be fantastic!
@AlessandroLeita
@AlessandroLeita 3 года назад
Grazie utilissimo, un saluto from Italy
@kazutonaruhaya3675
@kazutonaruhaya3675 3 года назад
great content!
@paulobaceIar
@paulobaceIar 2 года назад
If you're on Linux or Mac and had an error when installing nodemon, try "sudo npm install -g nodemon" instead of just "npm install -g nodemon"
@stuartwllc
@stuartwllc 2 года назад
Thanks for this!
@kunlohith
@kunlohith 3 года назад
HEY HI, Mr. Net Ninja, I am your very favored, 11-year-old, student learning node.js again. As usual, these videos are out of the box. THIS time I have 3 questions of curiosity that I REALLY wish My amazing teacher to answer if he has time to. So here they are: 1. how often do you read comments 2. do you teach these courses for a living of the adds 3. Are you pleased to read my comments, Mr. Net Ninja I really want you to reply to ALL the questions as honestly as possible if you have time. :) 😁😁😉👌👌✌✔👍 Thank you very much.
@dannyman2200
@dannyman2200 3 года назад
Great video net ninja, quick question, so when uploading a project to github do you delete the node modules so they're not uploaded or is there a way for the upload to ignore them? Cheers!
@debatrachatterjee2666
@debatrachatterjee2666 3 года назад
Use a .gitignore file and mention node_modules in that file. Whatever you mention in a .gitignore file does not get uploaded to github when you upload the project
@orionsquare
@orionsquare Год назад
Thank you Mr Ninja
@NetNinja
@NetNinja Год назад
@a.yashwanth
@a.yashwanth 4 года назад
Do I need to upload package lock. Json also to GitHub?
@noelbahthis8959
@noelbahthis8959 2 года назад
the best of the best
@hemantht3877
@hemantht3877 4 года назад
Great work shaun.. do you mind letting us know how many videos long is this course
@NetNinja
@NetNinja 4 года назад
hey, 12 videos in all. About 6hrs in total.
@cafe-tomate
@cafe-tomate 2 года назад
Shouldn't we add an if(req.method === GET) before evaluating the url of the req ?
@monsterminer5831
@monsterminer5831 Год назад
Thank u a lot bro U teach very well
@NetNinja
@NetNinja Год назад
You're very welcome :)
@dendroid4389
@dendroid4389 Год назад
that is a great tutorial
@fredpourlesintimes
@fredpourlesintimes 2 года назад
Not sure about this expression in English, but - as usual -, It's a digestible content; easy to watch/follow.
@Ksenseisei
@Ksenseisei 3 года назад
when I use -g does it mean I never have to run nodemon again in any future project I make?
@wyoung1179
@wyoung1179 3 года назад
Do you need a hosting company with node js or can you use your regular shared hosting account??? I have Hostgator shared hosting and it doesn't allow you to install Node Js.
@christianokotoaza1921
@christianokotoaza1921 2 года назад
With u node js is so easy
@ambientsoda106
@ambientsoda106 3 года назад
Hi I'm really interested in load balancing by creating say three servers to distribute users to...do you have any ideas? And can I link a hyml page made externally of the node js framework to node js? As I've been making ganes abd interested in using node js for both stores and gaming websites - for deciding win states and load balancing store users... As load balancing tends to be left out if node js tutorials...
@mohamedhaneefyaseen1272
@mohamedhaneefyaseen1272 2 года назад
This is not the lodash course but a Node course Great work Ninja
@yadhukrishnan1668
@yadhukrishnan1668 4 года назад
Thank you 👍
@ghostaccountlmao
@ghostaccountlmao Год назад
How funny the website would read "Ninja Parading Musically" during your video at 1:20
@ahmad_nour
@ahmad_nour 11 месяцев назад
Please what is the name of theme that you use in vs code ?
@johnhorsfall5898
@johnhorsfall5898 Год назад
Legendary
@doniaelfouly4142
@doniaelfouly4142 Год назад
thanks
@crispusmicheal3784
@crispusmicheal3784 11 месяцев назад
I can only pray God add more days in this life, thanks a lot Mr. ninja
@rdfn7
@rdfn7 3 года назад
After installing the Package.json, I did not get a package-lock.json. Is that something to worry about in order to follow along with the project? Or any ideia why the package-lock.json did not come with the package.json. Cheers!
@rdfn7
@rdfn7 3 года назад
please ignore this query, it actually showed up. Haha
@alexg7282
@alexg7282 2 года назад
Thx
@Cami555555Sheep
@Cami555555Sheep 6 месяцев назад
I didn't get a package-lock.json generated when I did npm init. is this a new thing? Or do I have some setting wrong
@jonldavis
@jonldavis Год назад
Does nodemon do the same thing as node --watch script.js ?
@vinjamuripawansudhir8170
@vinjamuripawansudhir8170 4 года назад
hey ninja is there a way to use react and node + mongo instead of firebase?? if there is please make a video on that
@NetNinja
@NetNinja 4 года назад
Sure, you can use mongo. I will probably do som kind of mern course in the future. This course will use mongo too.
@cjoyales7019
@cjoyales7019 4 года назад
Hey ninja can you do vue-native?
@Mahmudulhasan-ts5hm
@Mahmudulhasan-ts5hm 4 года назад
Please make a tutorial about vuejs ssr server side rendering
@arshverma8072
@arshverma8072 2 года назад
I am watching your whole videos of this node.js Playlist I am facing a problem while I am installing the nodemon in my vs code It showing after a small process "changed 116 packages, and audited 117 packages in 3s 15 packages are looking for funding Run ` npm funds `for details Found 0 vulnerabilities" If anyone knows how to solve this error please let me know...
@Nabilphysics
@Nabilphysics 2 года назад
if nodemon is not running due to security policy run this command in the terminal Set-ExecutionPolicy RemoteSigned -Scope CurrentUser
@MichaelBrima-ld9lo
@MichaelBrima-ld9lo 5 месяцев назад
thank you!
@nsholk
@nsholk 3 года назад
Great video,. Anyone end up with a “nodemon app crashed - waiting for file changes before starting message” after running nodemon server? I’m baffled an as Mac OS person how to interpret this. Thanks.
@rasmusjakobsen4891
@rasmusjakobsen4891 3 года назад
I know it's late but hopefully it can help someone else. I fixed this by using npm i -g npm and then npm i --save lodash this will install lodash which is needed for nodemon to work.
Далее