🔴 Complete NPM In 20Mintues | Import NPM Module in Node.JS in Hindi in 2020 #13

Поділитися
Вставка
  • Опубліковано 17 гру 2024

КОМЕНТАРІ • 320

  • @ThapaTechnical
    @ThapaTechnical  4 роки тому +39

    It's very important n awesome video 🎉 hope you like it ❤️ plz share with your friends on whatsApp group ok🙏

    • @Sp-px7gn
      @Sp-px7gn 4 роки тому +1

      Mongodb bhi start kro iske bad sir

    • @rsd2017
      @rsd2017 4 роки тому

      Kya is channel par koi WhatsApp group h
      If it's there pls let me know...

    • @pintubarman3344
      @pintubarman3344 4 роки тому

      sir, mongoDB with php in one video plz sir 🙏🙏🙏🙏

    • @shoaibkhan5776
      @shoaibkhan5776 4 роки тому

      Sir i request u ...

    • @shoaibkhan5776
      @shoaibkhan5776 4 роки тому

      Freelanceing k uper video bnao

  • @manikantasai6118
    @manikantasai6118 3 роки тому +192

    !!!!!!! NOTE : The typescript is now outdated so now everyone should use "import chalk from 'chalk' " instead of "const chalk=require('chalk') " and everyone should change the extension of the file to ".mjs" from ".js" ;

    • @smitpatel3981
      @smitpatel3981 3 роки тому +5

      why we you use .mjs instead of js any reason or why require is not work ??

    • @smitpatel3981
      @smitpatel3981 3 роки тому

      please reply

    • @hitengupta5793
      @hitengupta5793 3 роки тому +1

      thanks

    • @internship8369
      @internship8369 3 роки тому +10

      @@smitpatel3981 now node forces us to use ECMAjavascript module (before it was CommonJS module) so everything is treated in import and export from instead of require and module.export to increase the code reusability. so we use ".mjs" extension and ' import chalk from "chalk" '

    • @akansharangari715
      @akansharangari715 2 роки тому +1

      @Musical drug thanks 😊

  • @Q00997
    @Q00997 Рік тому

    Sabse badhiya tutor hain aap, aaj tak jitne bhi course videos dekhe hain youtube pe usme itna acha kisine bhi nahi sikaya

  • @imamulhasan2956
    @imamulhasan2956 3 роки тому +26

    Brother, I want to meet you at least once in my life .💖💖💖💖💖💖💖💖💖💖

  • @musiclovers8488
    @musiclovers8488 3 роки тому +4

    Awesome bro!!
    Boom ho gayi like!! 😂😜

  • @mohammadnoushadsiddiqui4786
    @mohammadnoushadsiddiqui4786 3 роки тому

    thank you so much sir u r the great reason ke within three months main frontend developer ki job kr paaya and now m moving to backend

  • @JashJhaveri
    @JashJhaveri Рік тому

    Thank you for going so deep into how it works and importance of each file. Great explanation

  • @RishiRaj-ex9wb
    @RishiRaj-ex9wb 2 роки тому +2

    We + Node = Vinod
    Great class group

  • @MoumitaMurmu-yb4bm
    @MoumitaMurmu-yb4bm 7 місяців тому

    'CHALK' use kar k sach me chaukh gayi sir🤣. Thank you sir best tutorial in YT.

  • @codesetter2497
    @codesetter2497 Рік тому +2

    Your "Boom Guyz" is amazing

  • @imamulhasan2956
    @imamulhasan2956 3 роки тому +1

    I watch your video 12 hours a day😍😍😍😍😍😍

  • @sanketsuryawanshi
    @sanketsuryawanshi 4 роки тому +3

    Awesome sir🤩❤ Congratulations for 200k subscribers

  • @hassaniqbal7702
    @hassaniqbal7702 3 роки тому

    Hassan watching from Islamabad. Bohot acha kaam karrahe ho @ Vinod Bahadur Thapa

  • @imamulhasan2956
    @imamulhasan2956 3 роки тому

    ami diner 12 ghonta watch your video. 😍

  • @puneetsharma936
    @puneetsharma936 2 роки тому +1

    The best part I liked , complte form validation module.. thank you

  • @AlokKumar-sy3jm
    @AlokKumar-sy3jm 4 роки тому +1

    Maja aa gya bro.....🥳🥳🥳

  • @rahul-java-dev
    @rahul-java-dev 3 роки тому +1

    Yes..liked alot. Thank you Thapa Sir. 👌👌🙌🙌

  • @imamulhasan2956
    @imamulhasan2956 3 роки тому

    Brother, I am a big fan of yours, I am a Bangladeshi. And I am your subscriber. I am learning watching your video on MARN Stack Development

    • @rihajul
      @rihajul 3 роки тому

      Hi bro.. I am from Bangladesh also.. Can we talk?

    • @imamulhasan2956
      @imamulhasan2956 3 роки тому

      yes... why not

  • @GameStrings
    @GameStrings Рік тому +1

    That school wala example was funny 😜🤣

  • @datastructure_solved5839
    @datastructure_solved5839 3 роки тому +1

    this was the best video in this playlist!

  • @codingbaba672
    @codingbaba672 3 роки тому

    thanks yar in hindi we are getting everything that's awesome

  • @DEEPANSHU_NAG
    @DEEPANSHU_NAG 4 роки тому +7

    *_NODE JS WITH MONGO DB & MYSQL TUTORIALS_*
    *_HOW TO DEBUG IN VISUAL STUDIO CODE_* ❓

  • @bossysmaxx
    @bossysmaxx 4 роки тому

    yess bro mujhe video axha (09:33 )laga...

  • @shivamvora2285
    @shivamvora2285 4 роки тому +1

    You well explained all tutorials

  • @BintuJhala
    @BintuJhala 4 місяці тому

    Sir abhi mene jab required use Kiya npm Mai to mere code me error aa rha tha is error me me do ghnte tak uljha Raha kyuki ab ES6mai import use ho rha h kisi bhi npm packege ko use krne ke liye our iske sath hi hame .json Mai bhi type module dena pad rha hai tab jakr me chalk and validator npm packege use kar paya hu 😢😢 to muje ek doubt ho rha h ki apke is course Mai node 3 years purana ho gya h to ky ab node Mai kafi new features aa gye h jo ki is series Mai Mai unhe miss kr skta hu ya fir error Mai uljha rhu our fir AI in sb ki help se mai yeh error solv krta rhunga. Ya fir Pki MERN series follow kru pr abhi mera react pr itna control nhi h 😅 react pda tha but uspe kam kiye kuch time ho gya h isliye rivision Krna pdega and sath hi project bnane pdenge react bhi mai waps se starting krunga bs 5. ,6 days bad apke hi channel se kyuki 😅 new series jo ap lekr aa gye ho

  • @techsupports2521
    @techsupports2521 2 роки тому +3

    content and package.json some this is changed
    new contant is- import chalk from "chalk";
    package.json - "type": "module", add on the top in package.json code

  • @visitor_t-w3p
    @visitor_t-w3p 6 місяців тому

    thank u so much..i completely understood npm

  • @apkaChotaBhai
    @apkaChotaBhai 3 роки тому +1

    thank bro i am learning thnigs slowly and clearly

  • @hassaniqbal7702
    @hassaniqbal7702 3 роки тому

    Awesome videos. Vinod Thapa

  • @rajat-s-kale1771
    @rajat-s-kale1771 Рік тому

    Your teaching is awesome

  • @vnswebarts740
    @vnswebarts740 2 роки тому +1

    please help chalk 5.0.0 version not supported or executed using require function.

  • @amalasebastian9968
    @amalasebastian9968 2 роки тому +3

    if u guyzz are facing problem ,you can use this command for installing chalk
    npm i chalk@4.1.1
    instead of npm i chalk

  • @nitinshinde642
    @nitinshinde642 4 роки тому

    hello better teacher than my clg teachers

  • @azizulhakimashik1154
    @azizulhakimashik1154 3 роки тому

    NIce tutorial bro
    Watched from Bangladesh

  • @ahsanali-fo5cz
    @ahsanali-fo5cz 2 роки тому

    your all videos is very helpful for me thanx sir

  • @Mayank-lf2ym
    @Mayank-lf2ym 3 роки тому

    Best dialog 'hit kijiye click kijiye'

  • @pramayusadal1475
    @pramayusadal1475 2 роки тому +1

    If you are getting ESM error...
    1⃣ : npm uninstall chalk
    2⃣: npm i chalk@2.4.1
    than run ur code...
    it's really version problem of 5.0.0 something...

  • @raghavbhardwaj1043
    @raghavbhardwaj1043 Рік тому

    Hi I m raghav ,good evening thapa sir .main aapki ye playlist follow kr raha hu aur ye Jo npm wali vedio m mujhe ek problem aari h starting m hi .aur jaise hi m chalk ko install krta hu aur terminal p run krata hu to wo error de Raha h (ERR_REQUIRE_ESM )PLZ ANYONE HELP ME taki m aage ka bhi padh sku

  • @unemployedcse3514
    @unemployedcse3514 4 роки тому

    Require example of school is very nice ,examples are awesome bro 💞💞 finally awesome vedio🌹
    I practice it bro awesome 💞

  • @anupamdas2472
    @anupamdas2472 4 роки тому

    i am your big fan bhaiya

  • @techpks5839
    @techpks5839 2 роки тому +3

    Why in my case it shows es module require.....it says you have to write
    Import chalk from 'chalk'

  • @imamulhasan2956
    @imamulhasan2956 3 роки тому

    vai love from bangladesh.

  • @kartikeykakaria9a180
    @kartikeykakaria9a180 2 роки тому

    Sir ismei ek error aa rha hai require() of es modules is not supported. Yeh kya hai??

  • @djkumarkumar5758
    @djkumarkumar5758 4 роки тому

    Great tutorial @vinod.

  • @RahulNaikStory91
    @RahulNaikStory91 2 місяці тому

    if anyone watching the video today in 2024. if you might get an error as per below:
    const chalk = require("chalk")
    ^
    ReferenceError: require is not defined in ES module scope, you can use import instead
    Solution - Use import
    import chalk from 'chalk'; and in package json add this "type": "module", post that run it .

  • @govindrajput3598
    @govindrajput3598 2 роки тому +1

    Mere isme Chalk module install to ho gya h...
    lekin jab apply kar rahe h to execute me error aa raha h..
    Mere pass kya error h uska photo h.. kis par send karna h bata dena..
    Please solve my problem as soon as possible...

    • @TanishArora-il3lc
      @TanishArora-il3lc 10 місяців тому

      bhai extention me mjs use kr module update hua h or
      const chalk = require("chalk") ki jgha import chalk from 'chalk use kr'

  • @shaheensiddiqui1952
    @shaheensiddiqui1952 2 роки тому

    sir you have quality of it

  • @tejasjhamnani7724
    @tejasjhamnani7724 4 роки тому +1

    Sir kitna time lagega is playlist ko ??

  • @Ji-yoon
    @Ji-yoon 4 роки тому +1

    Nice Video

  • @SumitKumar-vu6tf
    @SumitKumar-vu6tf 3 роки тому +1

    Thanks so much supported

  • @SURAJKUMAR-gn7ep
    @SURAJKUMAR-gn7ep 2 роки тому +4

    Dear Respective sir, I hope you are doing very well, I have a query chalk module after the import module when I try to run the hello world program there is a find an error (Instead change the require of F:\Nodejs\Nodechallenge
    pmMode
    ode_modules\chalk\source\index.js in F:\Nodejs\Nodechallenge
    pmMode\index.js to a
    dynamic import() which is available in all CommonJS modules.) so I need your help, sir, please help us.
    I request that sir please solve my problem as soon as possible.

    • @AnjaanCelebrity
      @AnjaanCelebrity 2 роки тому +6

      If you are getting esm error then:
      Got to your package .json and add "type":"module" above debug option.
      And use import chalk from 'chalk' instead of the require line.

    • @SURAJKUMAR-gn7ep
      @SURAJKUMAR-gn7ep 2 роки тому

      @@AnjaanCelebrity Thanku so much

    • @ayushsoni8509
      @ayushsoni8509 2 роки тому

      @@AnjaanCelebrity Thanks bro

    • @dhananjayvaish3276
      @dhananjayvaish3276 2 роки тому

      @@AnjaanCelebrity It didn't work for me , pls help someone , getting error module not found

    • @todaysindia4114
      @todaysindia4114 Рік тому

      @@AnjaanCelebrity thank u brother

  • @AbhishekGupta-wf7pw
    @AbhishekGupta-wf7pw 3 роки тому

    bro, u r just awesome thanks bhai

  • @pavansaibitla9008
    @pavansaibitla9008 10 місяців тому

    sir ,it is throwing some error like import can't be used out side the module

  • @XengShi
    @XengShi 4 роки тому

    This video is really Awesome

  • @jaswantsahu9383
    @jaswantsahu9383 2 роки тому +1

    Why error comming in my project code: 'ERR_REQUIRE_ESM'

  • @programmingwithjavascript3579
    @programmingwithjavascript3579 4 роки тому

    Super duper tutorial 💓😍💓☺

  • @muhammadosama5499
    @muhammadosama5499 2 роки тому

    thanks for perfect teaching

  • @pankajbharati
    @pankajbharati 4 роки тому

    Good Videos' with information

  • @CodeWithAaron
    @CodeWithAaron 4 роки тому +1

    Amazing Tutorial!!

  • @abhishekpotfode533
    @abhishekpotfode533 Рік тому +1

    if you getting error in using chalk, use older version .. npm i chalk@4.1.2

    • @vedantkulkarni3367
      @vedantkulkarni3367 Рік тому

      Thank you so muchh
      i cant express how much you have helped me.
      was stuck on this since 4 hours😮‍💨

  • @KirtanPatel552
    @KirtanPatel552 Рік тому +2

    if Any one facing one problem that
    const chalk = require('chalk')
    ^
    so they need to change extenstion from '.js' to '.mjs'

  • @easywebsolution7044
    @easywebsolution7044 2 роки тому

    Thanks, Amazing Tutorial!!

  • @HitsofArif
    @HitsofArif Рік тому +11

    Solution:
    Error [ERR_REQUIRE_ESM]: require() of ES Module C:\Users\Hitsof Arif\Desktop\arif
    ode_modules\chalk\source\index.js from C:\Users\Hitsof
    Arif\Desktop\arif\index.js not supported.
    Instead change the require of C:\Users\Hitsof Arif\Desktop\arif
    ode_modules\chalk\source\index.js in C:\Users\Hitsof Arif\Desktop\arif\index.js to a dynamic import() which is available in all CommonJS modules.
    code: 'ERR_REQUIRE_ESM'
    Ans:
    npm uninstall chalk
    then
    npm i chalk@4.1.2

  • @meghraj
    @meghraj 2 роки тому

    amazing one....

  • @rajkumaryadav2765
    @rajkumaryadav2765 2 роки тому

    mare systeam m Error: cannot find module 'chalk' aa raha h how to resolve it pls.. help me

  • @sauravkumar-qd6vu
    @sauravkumar-qd6vu 3 роки тому

    Bro since last few I m jzt trying to install this npm file but it is not working after entering "npm init" all other function are working that command prompt and version stuff bt this is nt working what should I do please tell me

  • @freefire-3G
    @freefire-3G 2 роки тому

    Error [ERR_REQUIRE_ESM]: require() of ES Module C:\Users\Satish G
    odejsplaylistfolder\NPMmod
    ode_modules\chalk\source\index.js from C:\Users\Satish G
    odejsplaylistfolder\NPMmod\index.js not supported.
    Instead change the require of C:\Users\Satish G
    odejsplaylistfolder\NPMmod
    ode_modules\chalk\source\index.js in C:\Users\Satish G
    odejsplaylistfolder\NPMmod\index.js to a dynamic import() which is available in all CommonJS modules.
    at Object. (C:\Users\Satish G
    odejsplaylistfolder\NPMmod\index.js:2:15) {
    code: 'ERR_REQUIRE_ESM'
    }

    • @DEVPATEL-re9qq
      @DEVPATEL-re9qq Рік тому

      This is because the parent folder does not contain node modules.
      To resolve this error please install the node module in the same folder where your JS file exists.
      install node modules at this location : C:\Users\Satish G
      odejsplaylistfolder\NPMmod

  • @vaibhavgupta425
    @vaibhavgupta425 2 роки тому +2

    I followed your complete instruction but while importing it is showing an error to import it dynamically . So, I tried to import it using import chalk from 'chalk' Then again it is showing an error of 'Cannot use import statement outside a module'. Please help me to resolve this issue

    • @Roman_Baloch
      @Roman_Baloch 2 роки тому

      Same issue if you found any answer do let mw know

    • @adilghani2680
      @adilghani2680 2 роки тому

      @@Roman_Baloch downgrade your chalk version to 4

    • @adilghani2680
      @adilghani2680 2 роки тому

      downgrade your chalk version to 4

    • @akhilshukla8901
      @akhilshukla8901 2 роки тому

      same issue brother

  • @binarybulletin
    @binarybulletin 2 роки тому +2

    That is something to do with the version you are using which is I think 5.0.0
    npm uninstall chalk
    then
    npm i chalk@2.4.1
    now you can run your code
    const chalk = require('chalk'); console.log(chalk.blue('Hello world!'));

    • @rahulchilap6420
      @rahulchilap6420 2 роки тому

      Thanks brother.i was stuck for 15 mins for the same..

    • @rajsoni1466
      @rajsoni1466 2 роки тому

      Thanks bro 🙂

  • @Dev-x3b
    @Dev-x3b 11 місяців тому +1

    IF SOMEONE IS GETTING ERROR IN HELLO WORLD CODE U CAN DO THIS :-- ADD "type": "module", just above the debug option and in index.js instead of
    ' require ' use :- import chalk from 'chalk' ;

  • @mdzaid6986
    @mdzaid6986 2 роки тому

    very informative lecture

  • @haseebalam4443
    @haseebalam4443 3 роки тому

    This package.json file already in reactjs.
    So for reactjs we don't need to write npm init?

  • @thekanhu8737
    @thekanhu8737 3 роки тому +2

    Sir your teaching style is superb!!!! But the last music also superrr!!! can you provide me the music link..

  • @Shri_Radhe_Aaditya_Here
    @Shri_Radhe_Aaditya_Here 2 роки тому

    SIR ITS AWESOME

  • @shreyanspatel9104
    @shreyanspatel9104 3 роки тому

    Angular pe koi video series banaye to achha rahega

  • @Anand-zg6jv
    @Anand-zg6jv 4 роки тому +2

    Bhaiya isme error aa rhi hai 'module not found' likh ke AA rha hai

  • @aayushsharma1697
    @aayushsharma1697 2 роки тому

    Sir jab mai code ko run kar ra to
    'ERR_REQUIRE_ESM'
    ye likha ara sir maine kahi bar try kar liya ,agr aap help kar dete to bht mehrbani 🙏

  • @shakshi2417
    @shakshi2417 3 роки тому

    Very nice Sir 👍

  • @yashgupta5571
    @yashgupta5571 4 роки тому

    Hi thapa, when I installed NPM file in vs code then show some error thants why I not able toh install chalk module and validation module, pls help

  • @afrozalam6591
    @afrozalam6591 3 роки тому

    npm chalk instal nahi horaha hai.
    what did I do?

  • @kamalCode
    @kamalCode 4 роки тому +1

    Sir, top 20 NPM PACKAGE FOR ECOMMERCE WEBSITE

  • @dibbodas4116
    @dibbodas4116 Рік тому

    awesome ❤❤

  • @mdhasibhasan6963
    @mdhasibhasan6963 3 роки тому +1

    We are waiting for him to appear on youtube fanfest though it might take a long time

  • @samiranroyy1700
    @samiranroyy1700 2 роки тому

    Sir great!

  • @shahidafridi8895
    @shahidafridi8895 2 роки тому

    at packageResolve (node:internal/modules/esm/resolve:860:9)
    at moduleResolve (node:internal/modules/esm/resolve:909:20)
    at defaultResolve (node:internal/modules/esm/resolve:1124:11)
    at nextResolve (node:internal/modules/esm/loader:163:28)
    at ESMLoader.resolve (node:internal/modules/esm/loader:841:30)
    at ESMLoader.getModuleJob (node:internal/modules/esm/loader:424:18)
    at ModuleWrap. (node:internal/modules/esm/module_job:76:40)
    at link (node:internal/modules/esm/module_job:75:36) {
    code: 'ERR_MODULE_NOT_FOUND'
    }
    i stuck in case of validators anyone can help plzz

  • @SandeepGupta-ll3tc
    @SandeepGupta-ll3tc 3 роки тому

    npm chalk are not install in program, please give me suggestion

  • @YashMalviya-hy4hz
    @YashMalviya-hy4hz 2 місяці тому

    Thanks bro🎉

  • @coderranger383
    @coderranger383 4 роки тому +1

    Sir, when I write 'node index.js' in terminal then terminal throw error
    But when I write './node index.js' then it's correct plz solve my problem

    • @yashgour413
      @yashgour413 4 роки тому +1

      node ./index.js is correct

    • @binarybulletin
      @binarybulletin 2 роки тому +1

      That is something to do with the version you are using which is I think 5.0.0
      npm uninstall chalk
      then
      npm i chalk@2.4.1
      now you can run your code
      const chalk = require('chalk'); console.log(chalk.blue('Hello world!'));

  • @MANISH-nb8wb
    @MANISH-nb8wb 4 роки тому

    Awesome video

  • @_mukumemories
    @_mukumemories 3 роки тому

    Sir plz tell me the intro song name plz, I have a humble request to you sir plz plz 🙏

  • @ravalrudresh2930
    @ravalrudresh2930 2 роки тому

    Chalk not working 2022 why? Please help

  • @akshaysomal7172
    @akshaysomal7172 2 роки тому

    sir , i have problem in requiring the chalk module . It gives me error message. " Error [ERR_REQUIRE_ESM]: require() of ES Module /Users/apple/Desktop/Javascript/node/npm module/node_modules/chalk/source/index.js from /Users/apple/Desktop/Javascript/node/npm module/index.js not supported.
    Instead change the require of /Users/apple/Desktop/Javascript/node/npm module/node_modules/chalk/source/index.js in /Users/apple/Desktop/Javascript/node/npm module/index.js to a dynamic import() which is available in all CommonJS modules.
    at Object. (/Users/apple/Desktop/Javascript/node/npm module/index.js:1:15) {
    code: 'ERR_REQUIRE_ESM'
    } "
    sir please solve my problem as soon as possible .
    Thank You

    • @checkmate0923
      @checkmate0923 2 роки тому

      install npm install chalk@4.1.0 and then run the code. You won't get any error.

  • @vinodchouhan7406
    @vinodchouhan7406 2 роки тому

    can anyone help me with this error
    const chalk = require("chalk");
    ^
    Error [ERR_REQUIRE_ESM]: require() of ES Module F:
    odejs
    pmMod
    ode_modules\chalk\source\index.js from F:
    odejs
    pmMod\index.js not supported.
    Instead change the require of F:
    odejs
    pmMod
    ode_modules\chalk\source\index.js in F:
    odejs
    pmMod\index.js to a dynamic import() which is available in all CommonJS modules.
    at Object. (F:
    odejs
    pmMod\index.js:2:15) {
    code: 'ERR_REQUIRE_ESM'

  • @pritamchakraborty4407
    @pritamchakraborty4407 4 роки тому

    Thanks sir for this video

  • @deadlysins7589
    @deadlysins7589 4 роки тому

    bro you are love

  • @rajuraj1257
    @rajuraj1257 4 роки тому

    you are awesome awesome

  • @adityapratapsingh4776
    @adityapratapsingh4776 2 роки тому

    asesome vidio but may be this code will be have little trouble on working with the version 5.0.0
    of chalk

  • @tarunchanderbhatt
    @tarunchanderbhatt 3 роки тому

    great video

  • @rammtutorial7491
    @rammtutorial7491 2 роки тому

    "ERR_REQUIRE_ESM"
    A rha h sir jab chalk ka code console kar rhe h

    • @checkmate0923
      @checkmate0923 2 роки тому

      install npm install chalk@4.1.0 and then run.

  • @Adi-sz4db
    @Adi-sz4db Рік тому +2

    2:04 that 10% people🗿