15.2: What is NPM? - Twitter Bot Tutorial

แชร์
ฝัง
  • เผยแพร่เมื่อ 6 ก.ค. 2024
  • This video covers the basics of npm (node package manager). What is node package manager? What are some basic commands like "init" and "install"? How do you use a Twitter package. Code: thecodingtrain.com/tracks/mas...
    If you run into an issue with "access denied" you can try "sudo", i.e. "sudo npm install twit --save"
    Videos:
    🚂 Mastodon Playlist: • Session 4: Mastodon AP...
    🚂 Data and APIs in Javascript Track: • Working with Data and ...
    Timestamps:
    0:00 What is NPM?
    1:56 The Twit package
    2:22 Installing a package
    3:06 Putting dependencies in the package.json file
    4:56 Using "npm init" to make the package.json file
    7:06 Using a text editor
    8:09 Finding packages
    10:57 Installing the twit package
    Editing by Mathieu Blanchette
    Animations by Jason Heglund
    Music from Epidemic Sound
    🚂 Website: thecodingtrain.com/
    👾 Share Your Creation! thecodingtrain.com/guides/pas...
    🚩 Suggest Topics: github.com/CodingTrain/Sugges...
    💡 GitHub: github.com/CodingTrain
    💬 Discord: thecodingtrain.com/discord
    💖 Membership: th-cam.com/users/thecodingtrainjoin
    🛒 Store: standard.tv/codingtrain
    🖋️ Twitter: / thecodingtrain
    📸 Instagram: / the.coding.train
    🎥 Coding Challenges: • Coding Challenges
    🎥 Intro to Programming: • Start learning here!
    🔗 p5.js: p5js.org
    🔗 p5.js Web Editor: editor.p5js.org/
    🔗 Processing: processing.org
    📄 Code of Conduct: github.com/CodingTrain/Code-o...
    This description was auto-generated. If you see a problem, please open an issue: github.com/CodingTrain/thecod...
    #twitter #bot #nodejs

ความคิดเห็น • 227

  • @FreedomFactory3D
    @FreedomFactory3D 6 ปีที่แล้ว +10

    I have been trying to learn off and on for years, this guy makes it all finally click and come together. You sir are the best programming teacher on TH-cam or on the web period!

    • @rxtechandtrading
      @rxtechandtrading 2 ปีที่แล้ว

      If you have been trying to learn for YEARS then you obviously haven't been learning from the right sources!! BTW this man is ok as a teacher-but I certainly would NOT classify him as the best-he does in some cases relay good info..

  • @bernardiho
    @bernardiho 6 ปีที่แล้ว +38

    Dude you are officially my Programming Teacher. I will hunt down and watch all your video's

    • @Alex-rt7de
      @Alex-rt7de 3 ปีที่แล้ว +2

      No he is mine!

    • @biketravel4889
      @biketravel4889 3 ปีที่แล้ว

      @@Alex-rt7de тЬІ не офигел, он для всех тут распинался, жалко, что слабо знаю eng, но понятно, на постсовке так не расскажут, что б бабло доить можно больше

  • @arielcavalcante9736
    @arielcavalcante9736 5 ปีที่แล้ว +37

    Instructions were not clear, got in love with the professor.

  • @elifkoc9017
    @elifkoc9017 7 ปีที่แล้ว +115

    You are so sweet and such a talented teacher! Thank you for the video

    • @joshuaconstantin1878
      @joshuaconstantin1878 6 ปีที่แล้ว +5

      Oh no problem, ill make sure to cum into a paper cup for the next tutorial. 👍

    • @zajec11
      @zajec11 5 ปีที่แล้ว

      kinda gay

    • @matthewfung5834
      @matthewfung5834 5 ปีที่แล้ว +2

      Cmon man it's 2018. Embrace the love. You can get off the train with that attitude.

    • @SonictheHedgehogInRealLife
      @SonictheHedgehogInRealLife 5 ปีที่แล้ว

      I love him too

    • @AJ-vy4yu
      @AJ-vy4yu 4 ปีที่แล้ว

      @@matthewfung5834 Marxist internationalists are using sexual and other minorities for their benefits. Once the goal of weakening and dividing the country was completed in Soviet Union and other countries, they were lined up against the wall.

  • @alexgames176
    @alexgames176 3 ปีที่แล้ว +1

    Best coding teacher on TH-cam

  • @axk2079
    @axk2079 4 ปีที่แล้ว +6

    man, you're epic! I've been stumbling my way through programming on various websites, and your method of teaching is impeccable!

    • @rxtechandtrading
      @rxtechandtrading 2 ปีที่แล้ว

      ummm EPIC is not exactly the word i would use

  • @MuzicFreakNumberOne
    @MuzicFreakNumberOne 6 ปีที่แล้ว +2

    wow just discovered your channel and I'm so impressed. I guess I've never seen anybody being so excited and motivated talking about coding. I could listen to you for hours and that's what I'll do :D You might be the best teacher on YT!

  • @bandezable
    @bandezable 5 ปีที่แล้ว +2

    I watch these videos as 2x speed and it's even more enjoyable. You do such a good job of breaking things down--very helpful!

    • @kerimtim
      @kerimtim 2 ปีที่แล้ว

      Same Barbara.

  • @adjocouk
    @adjocouk 8 ปีที่แล้ว +21

    Excellent videos. Love your energy... Makes learning fun!! Keep them up :)

    • @TheCodingTrain
      @TheCodingTrain  8 ปีที่แล้ว +3

      +adjo.co.uk Thank you so much!

  • @shawnsouthwell5632
    @shawnsouthwell5632 8 ปีที่แล้ว +2

    I can't believe this series isn't more popular. Thanks for everything, Daniel!

    • @TheCodingTrain
      @TheCodingTrain  8 ปีที่แล้ว +1

      maybe someday, thanks for the support!

  • @TheBazingaGr
    @TheBazingaGr 6 ปีที่แล้ว +2

    I’m watching you for a long time Daniel. I have to work on my final project for university this year and this video about npm really helped me out. Thanks a ton

  • @yuyuejiang3278
    @yuyuejiang3278 8 ปีที่แล้ว +79

    Very helpful, interesting and enthusiastic that never get you bored! Like it.

    • @TheCodingTrain
      @TheCodingTrain  8 ปีที่แล้ว +10

      thanks for watching!

    • @tantpnaa9640
      @tantpnaa9640 7 ปีที่แล้ว

      Оn thе wеb not surе thе rеeeаааason yоur technique doesn't work. Аlthough Im definitelу hapрy.... I discoverеed lеgаl аpрlicaation оn this googlе +. twitter.com/d8746ea3eb6b04556/status/789420521322524672 15 2 What is NPРМ Тwittеr Bоооt Тutorial

  • @akashtakawale9074
    @akashtakawale9074 5 ปีที่แล้ว +1

    There is no great like you out there,I love the way u teach.Thank you so much for this tutorials.....And just keep this going :)

  • @magicknicksthunder
    @magicknicksthunder 7 ปีที่แล้ว

    a fantastic sequel to 15.1 What is Node.Js? . Superb

  • @BasedMando
    @BasedMando 4 ปีที่แล้ว

    Calls himself a twit. Flaps around like a bird. Not really a tough cookie. Really good npm tut.
    This guy is awesome!!!

  • @FieelFlying
    @FieelFlying 6 ปีที่แล้ว +1

    Man, you're such a good teacher. You totally understand what a student might find confusing and focus on that, awesome.

  • @chapchic
    @chapchic 6 ปีที่แล้ว

    VERY HELPFUL (especially for someone new to Node like me)!! I watch this video every time I make a package.json and work with node.js

  • @Bagunka
    @Bagunka 4 ปีที่แล้ว +1

    Love your energy!

  • @kuczaq69
    @kuczaq69 7 ปีที่แล้ว

    god, I wanted to take a brake from programming and learning but your videos are just too much fun! great job, keep it up!

  • @fibber7062
    @fibber7062 7 ปีที่แล้ว

    Love your videos! Thank you for making them so interesting and fun to watch! :)

  • @mrobjectoriented
    @mrobjectoriented 5 ปีที่แล้ว

    Its nice to see a funny coding channel. Loved the video!

  • @girishrawat1800
    @girishrawat1800 7 ปีที่แล้ว

    Doing a great job Daniel! Thank you!

  • @thegeeksides
    @thegeeksides 7 ปีที่แล้ว

    THIS IS THE BEST CHANNEL EVER, DANIEL!!!!

  • @fnmn1
    @fnmn1 8 ปีที่แล้ว

    Underrated channel. Good stuff.

  • @cycy339
    @cycy339 5 ปีที่แล้ว

    For a complete beginner, I found this very helpful.

  • @Wezla
    @Wezla 7 ปีที่แล้ว

    You make this incredibly fun! (and I think CS is a blast as it is!)

  • @CloudWalkBeta
    @CloudWalkBeta 7 ปีที่แล้ว

    I like it, short enough and well explained.

  • @mrZcr4fter
    @mrZcr4fter 7 ปีที่แล้ว +4

    You are awesome sir!
    Made it look really interesting! you hooked me =))

  • @emeliavanzandt6030
    @emeliavanzandt6030 6 ปีที่แล้ว +1

    I Love your teaching style. Thank you so much!

  • @wvfrugalchick
    @wvfrugalchick 11 หลายเดือนก่อน

    I love the way you teach!

  • @Anthony-nc3tl
    @Anthony-nc3tl 7 ปีที่แล้ว

    I love your videos!! they are so fun and informative! thank you!!

  • @toddlee1115
    @toddlee1115 6 ปีที่แล้ว +2

    很生动有趣,支持作者!

  • @waltera.1958
    @waltera.1958 7 ปีที่แล้ว

    You're awesome! I hope you wouldn't stop making videos. :)

  • @MrClockw3rk
    @MrClockw3rk 5 ปีที่แล้ว

    Fantastic video, and very easy to follow for a newbie!

  • @professorsnapp
    @professorsnapp 4 ปีที่แล้ว

    Thank you for this! Helped me out so much ✊

  • @sahilthapa2291
    @sahilthapa2291 5 ปีที่แล้ว

    love your videos...great explanation!

  • @kerimtim
    @kerimtim 2 ปีที่แล้ว

    Much fun to watch

  • @pallablahiri
    @pallablahiri 7 ปีที่แล้ว

    you are awesome! keep cheering and sharing!!!

  • @santoshpol
    @santoshpol 7 ปีที่แล้ว

    Excellent Daniel, you are good Orator!

  • @Michael-rd8fg
    @Michael-rd8fg 7 ปีที่แล้ว

    Nice!! I learned a lot. Very enjoyable video.

  • @MarkJay
    @MarkJay 7 ปีที่แล้ว

    im completely new to js and this is very helpful. thanks!

  • @DivineZeal
    @DivineZeal 4 ปีที่แล้ว

    I seriously love you 😍

  • @BEBE-nf9sf
    @BEBE-nf9sf 5 ปีที่แล้ว

    I love you energy. Thanks so much

  • @carlosjimenez9403
    @carlosjimenez9403 6 ปีที่แล้ว

    Awesome & gifted teacher! thank you for this video. Subscribed.

  • @kamalsyed4237
    @kamalsyed4237 6 ปีที่แล้ว

    love the video and the way you teach :) thank you !

  • @fred0356
    @fred0356 3 ปีที่แล้ว +1

    2021 still helping out! great video!

  • @djuzla89
    @djuzla89 4 ปีที่แล้ว

    those questions on the beginning were hilarious :D

  • @truthseeker5360
    @truthseeker5360 5 ปีที่แล้ว

    This guy is great. It really is a good video. Thanks man.

  • @mikeskaug258
    @mikeskaug258 8 ปีที่แล้ว +1

    That was great! You have a gift - keep it up. I remember the first time I visited nodejs.org and saw this as the summary:
    "Node.js® is a JavaScript runtime built on Chrome's V8 JavaScript engine. Node.js uses an event-driven, non-blocking I/O model that makes it lightweight and efficient" - yeah, I'm confused.

  • @Cobesz
    @Cobesz 8 ปีที่แล้ว +12

    You sir, are a hero. Thx :)

    • @TheCodingTrain
      @TheCodingTrain  8 ปีที่แล้ว +2

      +Cas van t Wout thanks for watching!

    • @joshuaconstantin1878
      @joshuaconstantin1878 6 ปีที่แล้ว

      Cas van t Wout yeh, no problem im gunna cum in the next tutorial. 💪

  • @rafik.arif.83
    @rafik.arif.83 6 ปีที่แล้ว

    you are the best ... i love your way of explaining stuff ... thank you

  • @k4621
    @k4621 7 ปีที่แล้ว

    nice simple explanation

  • @JimmyGilbert
    @JimmyGilbert 7 ปีที่แล้ว

    wow! you rock simple and well explained!

  • @Chaaos2
    @Chaaos2 7 ปีที่แล้ว +1

    You're the best man thanks!

  • @truba4ev
    @truba4ev 7 ปีที่แล้ว

    Huge thanks for that helpful video

  • @firefun3656
    @firefun3656 4 ปีที่แล้ว +2

    Why do you make my life so much easier ?

  • @yonihod199
    @yonihod199 5 ปีที่แล้ว

    You are an excellent teacher

  • @menawerabdulla6251
    @menawerabdulla6251 7 ปีที่แล้ว

    Thank you very much, things got much clearer now

  • @MeraLesson
    @MeraLesson 7 ปีที่แล้ว

    very helpful ,informative,awesome,great , thank you :)

  • @spiritedaway99
    @spiritedaway99 5 ปีที่แล้ว

    dude ure full of energy !!

  • @iamsoorena
    @iamsoorena 7 ปีที่แล้ว

    you are really funny, I don't know why but I really laugh hard whenever you say something funny.

  • @vuyisananimeteni9588
    @vuyisananimeteni9588 5 ปีที่แล้ว +1

    You are awesome, Thank you for this Video :)

  • @adrianoldchannel2494
    @adrianoldchannel2494 6 ปีที่แล้ว

    Good. It was a great idea. I to watch your crazy videos. But!!!!! They makes a lot of sense to and answer a lot of questions. Lol. Thanks bro.

  • @yt_bharat
    @yt_bharat 6 ปีที่แล้ว

    Amazing instructor

  • @emmanuelkalibbala510
    @emmanuelkalibbala510 2 ปีที่แล้ว

    "tough cookie" great video.

  • @SilverSurferFTW
    @SilverSurferFTW 7 ปีที่แล้ว

    You are very good teacher thanks!

  • @suhuang8612
    @suhuang8612 3 ปีที่แล้ว

    Thank you for your video!

  • @abdullelahFahad
    @abdullelahFahad 7 ปีที่แล้ว

    I really enjoyed this video .. you're a such talented teacher .. I love your simple explanation .. please keep going I like your work. we really appreciate your valuable efforts.

  • @petrouphilippe2593
    @petrouphilippe2593 5 ปีที่แล้ว

    This is teaching. Excellent !!!

  • @felipebrandel5436
    @felipebrandel5436 8 ปีที่แล้ว +1

    Very helpful. Subscribed.

  • @LukeMartinVideo
    @LukeMartinVideo 8 ปีที่แล้ว +1

    look like the kind of video I was looking for for AGES! thank you so much. I will understand node.JS one day!
    I'm a big boy but I a bit slow! XD

    • @TheCodingTrain
      @TheCodingTrain  8 ปีที่แล้ว

      +Luke Martin glad to hear, I plan on making more node videos, stay tuned!

  • @kewkumbgamesofficial6834
    @kewkumbgamesofficial6834 2 ปีที่แล้ว +1

    Ur fun and ez to learn from! :)

  • @Shazzyb0y14
    @Shazzyb0y14 8 ปีที่แล้ว

    Following all your videos to learn JavaScript :)

    • @TheCodingTrain
      @TheCodingTrain  8 ปีที่แล้ว

      +Shehzaan Awesome! Here's another bunch of playlists you can start with: th-cam.com/users/shiffmanplaylists?view=50&shelf_id=14&sort=dd

  • @SuperSamsosa
    @SuperSamsosa 6 ปีที่แล้ว

    thumbs up ! Very well explained

  • @rommelrivera2353
    @rommelrivera2353 7 ปีที่แล้ว

    You awesome man !

  • @NoiseisKing
    @NoiseisKing 7 ปีที่แล้ว

    You ze boss shiffman!!! :)

  • @ChongHwi
    @ChongHwi 5 ปีที่แล้ว

    Love the effort

    • @mohamedlamineallal5523
      @mohamedlamineallal5523 4 ปีที่แล้ว

      medium.com/@allalmohamedlamine/how-to-reference-project-root-directory-in-an-npm-script-6802adfa12e2

  • @fahmir7429
    @fahmir7429 7 ปีที่แล้ว

    oh damn, i didnt realize there was a 15.1 video

  • @ravendfj
    @ravendfj 3 ปีที่แล้ว

    I stayed watching because he's funny!

  • @shubhasingh7583
    @shubhasingh7583 6 ปีที่แล้ว

    Great energy, which helps in learning and following along actively. Great work, thank you.

  • @klaik30
    @klaik30 5 ปีที่แล้ว +1

    I seem to be getting a "package-lock" JSON file and LOADS of other modules when I used the npm install command. I checked that I used it exactly as you did and I did. It added twit and 50 other packages for some reason but only added twit to the dependencies.
    Someone got any idea why this is?

  • @bharathraja952
    @bharathraja952 7 ปีที่แล้ว +4

    you are so kind...Damn..! how do you express yourself as more energetic...i want to learn pls teach me..

  • @n8ged8
    @n8ged8 4 ปีที่แล้ว +2

    In the video at 4:15 try "mkdir ../node2" (or "mkdir ..
    ode2" on windows) instead. That's less complicated (because you don't have to leave the terminal).

  • @arthurcoppens_
    @arthurcoppens_ 6 ปีที่แล้ว +1

    How do you install the Twit npm? I get errors all over the place when doing npm install twit

  • @5.2mhz
    @5.2mhz 2 ปีที่แล้ว

    I love these, thanks so much for this work! Where can I find the whole playlist?

  • @brunosousa3057
    @brunosousa3057 4 ปีที่แล้ว

    gj man

  • @chiranwijesekara7668
    @chiranwijesekara7668 5 ปีที่แล้ว

    Wonderful tutorial. Btw, we don't need --save anymore since npm 5.0.0

  • @jadoooh55
    @jadoooh55 5 ปีที่แล้ว

    I like this man, makes me laugh through boring coding

  • @WeXsamvidcool
    @WeXsamvidcool ปีที่แล้ว

    Awesome

  • @VivSlakes
    @VivSlakes 7 ปีที่แล้ว

    for others trying this at the moment: version 8.1.0 of node has a bug that stops init when you would have to type in the version. kill the window and do this by hand

  • @bwbs7410
    @bwbs7410 ปีที่แล้ว

    When you write "npm install twit --save"
    if you have multiple node projects how does npm know which one to modify? Is it whatever package.json file is in the current directory? What if you call it from a directory with no such file?

  • @ezequiasrocha3037
    @ezequiasrocha3037 7 ปีที่แล้ว

    Hi
    What if I would like to use npm but not add node_modules folder to my project (as we do in CDN reference in a web javascript program? Is there any option on npm command?

  • @FordExplorer-rm6ew
    @FordExplorer-rm6ew 4 ปีที่แล้ว

    How deprecated is this (2019)
    There are so few resources for understanding Twitter API

  • @lilazeonboa
    @lilazeonboa 6 ปีที่แล้ว

    Question, I'm very new to Node.js, after I install the latest Node.js v8, I open the cmd prompt and type "npm install" and press enter. then I type "npm install fast-csv" and I received an error code E404 not found: fast-csv. I'm using windows 10. Is it necessary to create the package.json? though I tried that and I still receiving the error. I cant install any npm....help please

  • @antonymoss8274
    @antonymoss8274 4 ปีที่แล้ว

    Genius

  • @monodeeproy4939
    @monodeeproy4939 6 ปีที่แล้ว

    npm tweet package ???? does tweet is already within node or it its is a library!! or it has to be dowload and save??? confused

  • @bothxp
    @bothxp 8 ปีที่แล้ว

    I'm using node v5.0.0. I noticed that when I ran 'npm install twit --save' that it generated a different folder structure to the one in your demo. When I opened the node_modules folder it didn't just contain the twit folder but instead contained all 52 of the modules that had been downloaded. I assume that in your demo the other 51 were all in the node_modules folder that was within the twit module folder ?

    • @TheCodingTrain
      @TheCodingTrain  8 ปีที่แล้ว

      +bothxp that's right, yes. I haven't installed 5 yet, but I suppose this could have changed. Will take a look.

  • @Nonsequitor415
    @Nonsequitor415 5 ปีที่แล้ว

    9:08 "maybe you should go and do something else"... lol. too late... I gotta do this for class... maybe after this class is over I can reevaluate...
    programming is powerful... but complex. It would take a lot of time to get to a level where I could actually perform to a considerable enough level. Anyway... great videos and random, divergent comments.

  • @akilljain
    @akilljain 4 ปีที่แล้ว

    I have an error when writing npm start in cmd event.js 187 throw err plz help me

  • @slgbishamonten
    @slgbishamonten 7 ปีที่แล้ว

    i watched all 15: episode and its helped me a lot , but i want to ask something can i use the same way on instagram ??