NPM Crash Course

  Рет қаралды 325,372

Traversy Media

Traversy Media

Күн бұрын

This is a beginner-friendly crash course and tutorial on NPM or the Node Package Manager. Some of what you will learn.....
Install and remove modules
Update modules
All about package.json
Set init defaults
Local & global modules
Dependencies & dev dependencies
Listing modules
Semantic Versioning
NPM Scripts
COMMANDS:
gist.github.co...
BECOME A PATRON: Show support & get perks!
/ traversymedia
ONE TIME DONATIONS:
www.paypal.me/t...
COURSES & MORE INFO:
www.traversymed...
FOLLOW TRAVERSY MEDIA:
/ traversymedia
/ traversymedia
/ traversymedia
NEED WEB HOSTING?
inmotion-hosti...
NEW DISCORD CHAT SERVER:
/ discord

Пікірлер: 411
@TraversyMedia
@TraversyMedia 6 жыл бұрын
Guys, you do not need to do --save anymore with NPM 5+
@blvnktek
@blvnktek 6 жыл бұрын
was just about to ask about this, every now and then I still do it just in case... like when I ass 1+1 in my calculator just to make sure it still equals one
@gopibabus
@gopibabus 6 жыл бұрын
Sir, This is one of the best tutorial I have seen on the web for learning basics about NPM. Can you create a crash course on COMPOSER for php projects ?
@JibinPhiliposeDGameR
@JibinPhiliposeDGameR 5 жыл бұрын
Hey, it would be nice to see a short follow up video to this since major changes has been made to npm with npx there too as well there is also a new package manager nppm somewhat. So lot of public is confused with package-lock.json and also do we have still have to use --save -dev to save dev dependencies?
@AnimatedStoriesWorldwide
@AnimatedStoriesWorldwide 5 жыл бұрын
don't ass your calculator, don't ass your calculator 1+1, don't ass your calculator 1+1 = 1...
@AndreKochDre
@AndreKochDre 5 жыл бұрын
@@JibinPhiliposeDGameR I agree
@elbasiriyouness1929
@elbasiriyouness1929 5 жыл бұрын
You dont need a bootcamp or a paid course ! you only need Brad Traversy to become a web developer
@davinchi7721
@davinchi7721 4 жыл бұрын
عربي وش
@osamagamal495
@osamagamal495 4 жыл бұрын
@@davinchi7721 مصرى وش
@huytrankhac8729
@huytrankhac8729 4 жыл бұрын
Definitely correct!
@mohammadsalimi6722
@mohammadsalimi6722 4 жыл бұрын
like
@grantpritchard7492
@grantpritchard7492 7 жыл бұрын
I have to say Brad, I've only recently started watching your videos but already I'm a huge fan. Your style is very easy to follow and even with more in-depth stuff it is very easy to learn as I watch, so well done!
@rxtechandtrading
@rxtechandtrading 2 жыл бұрын
yup not bad-at least he referenced the documentation
@ManontheBroadcast
@ManontheBroadcast 7 жыл бұрын
Things become much easier if someone can explain them in a simple manner, so that even a beginner can understand...thanks Brad ! ...keep on the great work.
@rxtechandtrading
@rxtechandtrading 2 жыл бұрын
not bad thats for sure
@luisgguillermo
@luisgguillermo 7 жыл бұрын
When I have issues with electron Brad puts out a video. When npm has been giving me grief the past week, Brad puts out another video. HE'S A WIZARD
@AkkayHT228
@AkkayHT228 5 жыл бұрын
npm init - Initialize package.json file npm run - run the scripts npm install - install packages npm remove - remove packages npm update - update packages npm config - config package.json file npm list - show all your packages -save - dependencies on your project -save-dev - dependencies only for development -g - install package globally -production - initialize package.json only with -save delpendencies
@shvetal3037
@shvetal3037 4 жыл бұрын
I think even without --save, it gets us dependencies on our project.
@husainmansuri9544
@husainmansuri9544 4 жыл бұрын
@@shvetal3037 yes it does. It was included in the update after the video was filmed
@abdullahalshohail2865
@abdullahalshohail2865 4 жыл бұрын
What is. the difference between saving dependencies on a project, vs saving only for development?
@purplepete123
@purplepete123 4 жыл бұрын
@@abdullahalshohail2865 im just guessing and please correct me if im wrong but i think the difference is that the dependencies for production are needed to run the app while the dev dependencies are just needed for the coding of the app. Its a wild guess though :D
@abdullahalshohail2865
@abdullahalshohail2865 4 жыл бұрын
@@purplepete123 That does make a lot of sense tho, thanks!
@ab97305
@ab97305 4 жыл бұрын
Man, all I have to say is this crash course was EXCELLENT! I was totally lost with NPM and now I have a better understanding. Thank you so much! Smiles ☺
@wimalranaweeratunga850
@wimalranaweeratunga850 6 жыл бұрын
I am still watching at 19.28 and thought I am ready to post a comment. A big thank you for this video. its very clear, explains exactly the stuff that I have been really concerned with and have been searching for months. You are a life saver. subscribed.
@omermindivanli2981
@omermindivanli2981 7 жыл бұрын
It is so important that Mean Stack Developers should understand the structure of NPM... Thanks Brad
@mylordishere9915
@mylordishere9915 4 жыл бұрын
Thank you very much for this video. Before watching this video, i used to switch to new linux distro, everytime just because i wasn't able update or remove global packages. You saved me from that big hassle.
@alfredchow6901
@alfredchow6901 3 жыл бұрын
I have been using NPM for a while but I really don't know some of the points you mentioned. Thanks a lot!
@webtutorials4279
@webtutorials4279 Жыл бұрын
Feb 2023 update: You do not need to use `npm install --save [packagename]` anymore. Just `npm install [packagename]` does the same thing. `--save` is not needed anymore. Similarly instead of `npm install --save-dev [packagename]`, do `npm install -D [packagename]`
@stuffedstuff7086
@stuffedstuff7086 3 жыл бұрын
Maannn you've done tutorials in almost everything for full-stack devs Thanks for everything sir.
@zuheyrtahir4409
@zuheyrtahir4409 7 жыл бұрын
I really like the way you present/go through the videos. I understand and learn with much ease. Watching your videos I can learn in one hour, what the thing is/is it useful/ will it be of use to me/should I learn about it further. I do not know what type of programmer, I am currently, but my type finds it easier to learn from you, about the things you are teaching.
@2breborn247
@2breborn247 3 жыл бұрын
Fantastic series on NPM! Thank you so much
@pikachu5223
@pikachu5223 7 жыл бұрын
Lodash and security(helmet etc) in nodejs/express Crash course? Thanks Brad, my Hero!!
@agungbencong8468
@agungbencong8468 3 жыл бұрын
I've been learn react native almost 8 month, and still confuse, now i found this tutorial, and I could clearly understand it for 42 menit.....thanks master brad😍😍😍😍
@jasonlloyd806
@jasonlloyd806 7 жыл бұрын
Nice video brad would love to see an lodash crash course
@liyuqin944
@liyuqin944 7 жыл бұрын
agree!
@TraversyMedia
@TraversyMedia 7 жыл бұрын
Jason Lloyd good idea
@PankajChakraborty9786
@PankajChakraborty9786 7 жыл бұрын
+1 for lodash crash course
@quantum-t
@quantum-t 7 жыл бұрын
I totally agree
@lfx2mlfx2m8
@lfx2mlfx2m8 4 жыл бұрын
it's 2020 and this is still the best tutorial on npm I found you make youtube great
@munteanudan5838
@munteanudan5838 2 жыл бұрын
Thank you very much for this Crash Course. Anyway a lot of people, including me, still encounters difficulties when it comes to such technologies as npm and webpack. I hope that in 2022 you will provide us a pre-React Project Course in which we will get more familiarize with npm, webpack technology, after which it would be much easier to start studying React. Thank you very much for your work, you are the best teacher, you help us to learn and stay motivated. Happy new Year!!!
@harrylockheed79
@harrylockheed79 5 жыл бұрын
Hey there Brad, great crash course, Love your videos. Just a note though for maybe anyone else who is following along and doing these commands verbatim with you: I had a hiccup when I globally installed nodeman and tried running it. I ran "nodeman" just like Brad did in the bash command prompt but instead what I got was an Error: Cannot find module 'file path'. I was getting pretty frustrated; so I went along the file path to the destination and found the nodeman file, but then noticed beneath it was the windows command script "nodeman.cmd". I decided to give this a run in the command prompt and it works just fine. I don't know why I can't just run "nodeman" in my command prompt, but I thought I'd throw that out there just in case anyone else encounters that.-Thanks again,Harrison
@kevinzhang8974
@kevinzhang8974 6 жыл бұрын
I wish I had watched this video much easlier ... it is a quick summary all the common commands for npm ... thanks to Brad again!!!!
@abdullahsalem1998
@abdullahsalem1998 6 жыл бұрын
Didn't know anything, and now i know more than i deserve, thank you very much
@daniellaerachannel
@daniellaerachannel 7 жыл бұрын
nice video! at 22:03 'a ton of shit lol' this is the right word
@ericellison2413
@ericellison2413 6 жыл бұрын
yes the best word for that
@amnest1ac
@amnest1ac 6 жыл бұрын
this captures it well ))
@johnthomas4516
@johnthomas4516 5 жыл бұрын
Glad other people found thta as funny as I did. Absolutely marvelous resource, this.
@let_go429
@let_go429 4 жыл бұрын
When I cracked up bc he said that, I freaking paused and came down here to look for this comment!
@rafidahmedrd
@rafidahmedrd 4 жыл бұрын
Wow thanks for all the short cut commands. You really give insights which is really helpful for all the noobs' like me.
@fernandaopk
@fernandaopk 7 жыл бұрын
Little tip: If you use "npx" instead of "npm" you use the package just once. So, with things you don't use that often, like a Yeoman generator, you don't bloat your system.
@woodstockanhaenger364
@woodstockanhaenger364 5 жыл бұрын
Let's install and remove gulp a couple hundred times ;) thanks for the video, it was perfectly easy to follow
@ricric4722
@ricric4722 8 ай бұрын
This is the best npm tutorial on KZbin! Thank you!!! ❤❤❤
@aminuusman6932
@aminuusman6932 3 жыл бұрын
Nice one Brad..Watching your videos is exciting. At least i understand npm better...
@puzzlecanes
@puzzlecanes 5 жыл бұрын
Thanks this helped. Please do a video on how to update code when one of your dependencies' dependencies has a security issue. What is a good strategy for figuring out how to update your dependency without affecting anything else. When working with a tutorial eventually most of it's dependencies get stale and updating each one is rough because it is all new to me.
@8cho9ueve
@8cho9ueve 6 жыл бұрын
This is awesome. I'm currently taking other courses on udemy that briefly touch on specific npm steps to set up an environment for the course, but don't give an overview. This video was super useful to me right now.
@themarksmith
@themarksmith 7 жыл бұрын
This guy is fantastic!
@webapplicationguide3798
@webapplicationguide3798 7 жыл бұрын
You might have known already. just a tip, that you could change integrated terminal for vs code to git bash by going preferences file. Thank you !!
@miles611
@miles611 5 жыл бұрын
That was the exact tutorial I needed in my life right now. Thank you!
@BrianHaferkamp
@BrianHaferkamp 5 жыл бұрын
Love that you did this video. Thanks, Brad!
@Naniy55462
@Naniy55462 7 жыл бұрын
npm prune is used to remove all the dependencies in package.json file, very usefull
@rajitharajasooriya2574
@rajitharajasooriya2574 2 жыл бұрын
Excellent video. Covered a hell lot of information in a short period of time. Explanation is on next level. Thank you very much for the effort.
@neoskribe8986
@neoskribe8986 7 жыл бұрын
Man, this was needed so much!!
@СергейГолубев-л5п
@СергейГолубев-л5п 6 жыл бұрын
Well, Brad I say this once again: a great thank you for videos which u produce they're awesome and very useful. I've took a lot from your videos, they allow me to get some not really complicated knowledge rappidly like "npm".
@jeremiahlandi6360
@jeremiahlandi6360 2 жыл бұрын
I now will put Brad Traversy as the author in all my conifgs.
@raniab96
@raniab96 3 жыл бұрын
I like it before even watching ! you never disappoint
@codyq0987
@codyq0987 6 жыл бұрын
The best NPM tutorial on KZbin. Thank you!
@nauticaorangewatchbg9923
@nauticaorangewatchbg9923 4 жыл бұрын
This world needs more people like you! Thank you kind sir!
@shawnbehnam
@shawnbehnam 5 жыл бұрын
Thank you for making this tutorial. Simple and to the point.
@maverick_entertainment21
@maverick_entertainment21 7 жыл бұрын
You have got some seriously good presentation skills. Nice.
@matteobarbieri2989
@matteobarbieri2989 7 жыл бұрын
Now NPM is much clear (in my mind). Thanks Brad
@bxlbjorn
@bxlbjorn 3 жыл бұрын
This is great! I am no longer intimidated by NPM
@brace77
@brace77 4 жыл бұрын
Great video. I was looking for a npm intro tutorial and this is very well done. Congratulations! Thanks.
@rohansaand2023
@rohansaand2023 7 жыл бұрын
great video Brad. Thanks for helping us novice web developers. Small request, in future, whenever you have time a MEAN app with Angular 4 will be very helpful.
@deepakroy3459
@deepakroy3459 4 жыл бұрын
This man is legend when it comes to js
@jean-david-ouellette
@jean-david-ouellette 5 жыл бұрын
You rock man! This is exactly what I needed, just bought your Angular course, looking forward to that one too!
@niklasoti
@niklasoti 7 жыл бұрын
Thanks Brad, learning a lot from your videos ! Maybe you could show us next time how you go about doing your Cross Browser Testing.
@terry_swd
@terry_swd 2 жыл бұрын
So much useful info - thanks Brad!
@JD-hq1kn
@JD-hq1kn 2 жыл бұрын
LIKED . SUBSCRIBED . COMMENTED > You deserved it Brad. Thanks for sharing the knowledge.
@Nexjsdeveloper
@Nexjsdeveloper 4 жыл бұрын
U r hero of programing eductions
@mkvk32
@mkvk32 8 ай бұрын
very good video, had to read some stuff that has been uptaded, but the base of it is optimal
@kibirigejohn8324
@kibirigejohn8324 2 жыл бұрын
Thank you Brad, this was really helpful. May God bless you
@bijuphilipjacob2961
@bijuphilipjacob2961 6 жыл бұрын
Excellent course on npm Covered the basics and more with enough examples. Very clear explanation with details to the tee. Now I am sure of what npm is and how to use it. Thank you very much Brad.
@mariopizzaro
@mariopizzaro 2 жыл бұрын
Great tutorial Brad! help a lot in this sometimes difficult journey to become Web Dev!
@ידידיהאברגל
@ידידיהאברגל 3 жыл бұрын
Thank you so much for these courses! Easy explanation to understand down to the smallest detail
@wibowomuhmmad
@wibowomuhmmad 2 жыл бұрын
It's 2021 and this npm tutorial video is still good to learn, thankyou bro
@dankelly
@dankelly 7 жыл бұрын
Another great video, Brad! Wow!! Makes me want to learn Node just so I can use it!
@mauricioosorio1320
@mauricioosorio1320 5 жыл бұрын
Excellent video. Very complete tutorial!!
@eugenekhristo7252
@eugenekhristo7252 6 жыл бұрын
Great! So concise and so much useful info!
@magyartimea6716
@magyartimea6716 2 жыл бұрын
thank you for teaching us free
@jonsnow9758
@jonsnow9758 4 жыл бұрын
Thank you very much. I have learned a lot abt npm by this video.
@the_yugandharr
@the_yugandharr Жыл бұрын
Insane!!!! Thank you so much Brad!
@hashirmughal5625
@hashirmughal5625 Жыл бұрын
congratulation for 2m
@rs-tarxvfz
@rs-tarxvfz 2 жыл бұрын
This is more helpful for the DevOps automation person.
@ToniLiem
@ToniLiem 7 жыл бұрын
Great video brad. Really appriciate your work.
@keshav885
@keshav885 7 жыл бұрын
you are a kind of super human 'Brad'
@urbaniv
@urbaniv 5 жыл бұрын
Thanks thanks thanks! That's exactly the overview and introduction I looked for ... really good job
@paulbcote
@paulbcote 4 жыл бұрын
Thanks Brad. I bumped into npm and wanted to quit. Now I can continue!
@mugambo5505
@mugambo5505 3 жыл бұрын
You saved my life brad
@nicknameyu3588
@nicknameyu3588 5 жыл бұрын
This is really helpful and friendly to noobs. Thanks a lot.
@DrHappybone
@DrHappybone 6 жыл бұрын
When I ran "npm list" I had a shit ton of "err missing" messages. Apparently there's some issue with the package and package-lock files. Running "npm dedupe" fixed it. Found the solution on Github :)
@yustinayasin5539
@yustinayasin5539 3 жыл бұрын
Thank you for this course. I learn a lot. GBU
@satishkumar-to1ud
@satishkumar-to1ud 5 жыл бұрын
Thanks Brad Traversy for tutorial.. it helped me alot .
@fadifindakly3850
@fadifindakly3850 4 жыл бұрын
What a great and simple explanation! Thank you so much!
@EylonU
@EylonU 4 жыл бұрын
Thanks a lot for another straight to the point course
@LawZist
@LawZist 7 жыл бұрын
Love your vids! I watch every single one of them! thank you
@putenz87
@putenz87 5 жыл бұрын
Hi Brad! Can u make a tutorial on how to use npm script as task runner instead of gulp? You're the numb 1!
@emmanuelmonlenyode83
@emmanuelmonlenyode83 5 жыл бұрын
Thanks a lot Brad, this was really confusing to me before.
@adventurer1121
@adventurer1121 5 жыл бұрын
Another great video by Brad.
@YajneshKumar
@YajneshKumar 6 жыл бұрын
Really helped, simple and cleanly explained. Thanks :)
@Clazzette
@Clazzette Ай бұрын
"tons of sh*t" i love this man even more lmao
@ichnafi8512
@ichnafi8512 7 жыл бұрын
You sir, are a gift of god!
@n0ks
@n0ks 7 жыл бұрын
Node webkit would be awesome! Nice video as always.
@hirephpdevelopers3840
@hirephpdevelopers3840 7 жыл бұрын
I have learned a lot from your videos. Thank you.
@wepranaga
@wepranaga 6 жыл бұрын
11:53 the command changing the config author name _npm config set init-author-name_ doesn't work anymore on 5.6.0. you have to use _npm config set __init.author.name_ with dots instead of hyphen. 22:03 a ton of shit 😅😅
@noahmalchy2676
@noahmalchy2676 4 жыл бұрын
Thanks Brad, clear explanation, keep at it!
@bhushi5764
@bhushi5764 7 жыл бұрын
Great crash course man!!! Thanks. Well done.
@camsolo2024
@camsolo2024 5 жыл бұрын
Just wanted to say thanks! Answered some questions I had.
@DebanjanKarmakar
@DebanjanKarmakar 7 жыл бұрын
Can you please make a video on p5 js..it will be very helpful..all of your videos are super interesting and well explained..please make a video on p5 js..thank you for sharing your knowledge
@hazzaldo
@hazzaldo 4 жыл бұрын
Awesome tutorial. Thank you so much. I've subscribed. One question: if another developer clones your project, how will they know what global packages need to be installed? Because global packages are not included in package.json!
@allaws4062
@allaws4062 6 жыл бұрын
Thanks for the Tut Brad this helped me out alot.
@justyna6134
@justyna6134 3 жыл бұрын
I tried to lounch nodemon, but still have the error: $ nodemon internal/modules/cjs/loader.js:883 throw err; ^ is appear - cant find what is the reason have already uninstall even node.js ... nothing help ! could you help me please?
@SurajSk-ik2zf
@SurajSk-ik2zf 2 жыл бұрын
2022 complete this npm package manager video thank you brad
@AnoopD2013
@AnoopD2013 7 жыл бұрын
Could have mentioned about Yarn too in the end :) Really nice tutorial
@Soumya21st
@Soumya21st 7 жыл бұрын
Brilliant tutorials Sir..Just a small question..how do you know from beforehand which is a dev dependency and which is not? Is it something we learn by experience?
Yarn Package Manager Crash Course
22:43
Traversy Media
Рет қаралды 110 М.
APIs for Beginners 2023 - How to use an API (Full Course / Tutorial)
3:07:07
freeCodeCamp.org
Рет қаралды 2 МЛН
Шок. Никокадо Авокадо похудел на 110 кг
00:44
From Small To Giant Pop Corn #katebrush #funny #shorts
00:17
Kate Brush
Рет қаралды 69 МЛН
БЕЛКА СЬЕЛА КОТЕНКА?#cat
00:13
Лайки Like
Рет қаралды 2,2 МЛН
SHAPALAQ 6 серия / 3 часть #aminkavitaminka #aminak #aminokka #расулшоу
00:59
Аминка Витаминка
Рет қаралды 1,7 МЛН
Vue JS Crash Course
1:50:52
Traversy Media
Рет қаралды 1,3 МЛН
Node.js Crash Course
2:06:35
Traversy Media
Рет қаралды 184 М.
JSON Crash Course
24:49
Traversy Media
Рет қаралды 1 МЛН
Express Crash Course
1:46:11
Traversy Media
Рет қаралды 90 М.
NPM пакет от А до Я. Для нубов
22:15
WebDev с нуля. Канал Алекса Лущенко
Рет қаралды 23 М.
Node.js Tutorial for Beginners: Learn Node in 1 Hour
1:18:16
Programming with Mosh
Рет қаралды 6 МЛН
Node.js Crash Course
1:30:08
Traversy Media
Рет қаралды 1,6 МЛН
Node.js Ultimate Beginner’s Guide in 7 Easy Steps
16:20
Fireship
Рет қаралды 1,6 МЛН
What is NPM, and why do we need it? | Tutorial for beginners
14:27
Coder Coder
Рет қаралды 318 М.
Шок. Никокадо Авокадо похудел на 110 кг
00:44