Command failed with exit code 1: npm run build - Netlify fix 2020

Поделиться
HTML-код
  • Опубликовано: 13 сен 2024
  • Udemy Courses:
    - 9 React Projects on Udemy - bit.ly/2D83M8c
    - 9 React Projects on Gumroad - h3webdevtuts.g...
    Social Media:
    - Web Dev Discord - / discord
    - Github - github.com/h3h394
    - Twitter - / h3webdeveloper
    - Instagram - / h3webdevtuts

Комментарии • 267

  • @temirzhanyussupov6997
    @temirzhanyussupov6997 4 года назад +21

    The solution starts at 3:30
    Thanks for sharing!

    • @h3webdevtuts
      @h3webdevtuts  4 года назад +1

      Thanks for the time stamp, and thank you for watching as well. Glad if I could help :)

  • @artisticdevelopment7181
    @artisticdevelopment7181 7 месяцев назад +1

    It's currently 2024 and this is the only solution that worked for me out of hours of looking around. Thank you.

  • @Ikkitousen32
    @Ikkitousen32 3 года назад +3

    Thank you so much man! I was going crazy for over 6 hours trying to solve this problem, erasing, recreating new stuff and reading forums. Now it works, thanks again!

    • @h3webdevtuts
      @h3webdevtuts  3 года назад

      Hey, glad it helped you. Thank you :)

  • @kailashraizelmaden4684
    @kailashraizelmaden4684 4 года назад +8

    thanks man, works out well, after that i solved tiny space mistake instead of this, CI = npm run build, to CI= npm run build

    • @h3webdevtuts
      @h3webdevtuts  4 года назад +1

      You're welcome, glad you made it work :)

    • @akinkunmi__
      @akinkunmi__ 3 года назад +1

      thanks man I made the same mistake too.

    • @kailashraizelmaden4684
      @kailashraizelmaden4684 3 года назад

      @@akinkunmi__ most welcome bro! yeah its something that happens, but great work you solved it!!

  • @codecademy1
    @codecademy1 4 месяца назад

    Thanks you so much. I have been searching for several days. Finally CI= npm run build solve my problem thanks for your supporting Sir..

  • @fersymartinez7170
    @fersymartinez7170 2 года назад +1

    Thanks! I forgot the " " between = and npm so I was sad but then I see my error, keep going, still works in 2022

    • @h3webdevtuts
      @h3webdevtuts  2 года назад

      Glad you got it working. Thanks for watching :)

  • @chubbyBunny94
    @chubbyBunny94 3 года назад +1

    IT WORKED WITH YARN!!! THANK YOU SO MUCH!!!! Oh my goodness, it's been an issue for months. CI= yarn build

    • @h3webdevtuts
      @h3webdevtuts  3 года назад +1

      Yayyyy, glad you fixed it at the end. Also thanks for sharing, might help someone else as well if they encounter something similar. Thanks for watching :)

  • @LucasSousa-wk6df
    @LucasSousa-wk6df 4 года назад +3

    Thank so much.
    I spent two hours looking at the package.json

    • @h3webdevtuts
      @h3webdevtuts  4 года назад +1

      Glad you could fix it as well. First day I had this issue, I was stuck for 5 hours probably, but we fixed it at the end, that's all it matters :D

  • @anujjoshi5202
    @anujjoshi5202 3 года назад +1

    HOLY ... IT WORKED.. None of the stack answers were helpful,, but your solved mine 2 days of headache haha

    • @h3webdevtuts
      @h3webdevtuts  3 года назад

      Glad you fixed your issues, my struggle was the same initially :D Thanks for watching :)

  • @amolshrivastava7786
    @amolshrivastava7786 3 года назад +2

    hi man, thanks for this help. I was totally disheartened seeing my app unable to be deployed. This helped me very much. keep posting such tips and tricks👍👍👍

    • @h3webdevtuts
      @h3webdevtuts  3 года назад

      Glad you fixed your issues. Thanks for watching :)

    • @juanpablogomezzapata3601
      @juanpablogomezzapata3601 3 года назад +1

      Thank you very much for the help, now I can continue in my learning of react :)

  • @gaetandesignz4599
    @gaetandesignz4599 2 года назад +1

    thanks for sharing this useful video with us. two years later it keep helping other devs really appreciate you'all guys

    • @h3webdevtuts
      @h3webdevtuts  2 года назад

      Glad you found it useful. Thank you :)

  • @DamonMedekMusic
    @DamonMedekMusic 2 года назад +1

    This worked for me. Not sure why it did, I thought it was tailwind or something. Glad thats over with.

    • @h3webdevtuts
      @h3webdevtuts  2 года назад

      I'm glad you got it working. Thanks for watching :)

  • @nicolasflores4332
    @nicolasflores4332 2 года назад +1

    Thank you so much man! I almost went to a psychiatric hospital for this mistake, thank you!

    • @h3webdevtuts
      @h3webdevtuts  2 года назад

      Glad you got it working, I was stuck on this issue for forever as well. Thanks for watching :)

  • @uk-yp2pz
    @uk-yp2pz 2 года назад +1

    Thanks alot it solved my issue by updating project fie "CI= npm run build" in command in place of "npm run build"

    • @h3webdevtuts
      @h3webdevtuts  2 года назад

      Glad you got it working. Thanks for watching :)

  • @drummer4040
    @drummer4040 Год назад

    you are SOOOOOOOOOO cool
    guys i did not believe that it would work
    BUT IT DID
    it's 1 o clock at night
    I feel so happy right now
    it really magically did
    CI= npm run build

  • @jideabdqudus
    @jideabdqudus 3 года назад +2

    Thanks, wondering why I didnt think of searching on youtube at first :)

    • @h3webdevtuts
      @h3webdevtuts  3 года назад

      You are welcome, glad you fixed it. Thanks for watching :)

  • @learnwithirfan2096
    @learnwithirfan2096 Год назад

    Sir Thank You so much I was facing this error from many time but finally after watching ur video it completely Works and once again thank U so much

  • @DG-nc1jc
    @DG-nc1jc 3 года назад +2

    Thanks for sharing this, Not all heroes wear capes! Keep up the good work!

    • @h3webdevtuts
      @h3webdevtuts  3 года назад

      You are welcome. Thanks for watching :)

  • @rohan1765
    @rohan1765 3 года назад +2

    I'm deploying a simple react app with one public api call , app is deployed perfect , but whenever I run the hosted app , api call doesn't work , if I run it locally it works any solution?

    • @h3webdevtuts
      @h3webdevtuts  3 года назад

      I'm not sure I would need to check your code. Might be some http / https issues, maybe cors issue if I had to guess, feel free to join the discord and send me the project there, or a github link and I will take a look. Thanks for watching :)

    • @rohan1765
      @rohan1765 3 года назад +2

      @@h3webdevtuts somehow it worked now 😂 , than you so much for quick response , much appreciated.

    • @h3webdevtuts
      @h3webdevtuts  3 года назад

      @@rohan1765 No problem, I'm glad you fixed it :D

    • @rohan1765
      @rohan1765 3 года назад +1

      @@h3webdevtuts 🙂

  • @serayaexiste
    @serayaexiste 3 года назад +1

    Thanks men! I've been three days with this error!

    • @h3webdevtuts
      @h3webdevtuts  3 года назад

      I'm glad that u figured it out. Thanks for watching :)

  • @official_scientia
    @official_scientia 2 года назад +1

    Thanks bro
    I really struggled with this

    • @h3webdevtuts
      @h3webdevtuts  2 года назад

      Glad you got it working. Thank you :)

  • @j7coder
    @j7coder 8 месяцев назад

    Thanks bro! I had the same error with Cloudflare and this solved my issue

  • @soniapamelajuarez8400
    @soniapamelajuarez8400 9 месяцев назад

    Thank you very much for sharing your useful findings!

  • @westernpigeon
    @westernpigeon 2 года назад +1

    to anyone having a problem after typing "CI= npm run build" - make sure there's no space between the CI and the = sign

  • @Siva-en6dt
    @Siva-en6dt 2 года назад +1

    Mad Respect my dear brother, I was stuck in it like hours

    • @h3webdevtuts
      @h3webdevtuts  2 года назад

      Glad you got it working! Thanks for watching :)

  • @chelsirawat3336
    @chelsirawat3336 3 года назад +1

    Thank you so much!! I was struggling with this for a long time!

    • @h3webdevtuts
      @h3webdevtuts  3 года назад

      No problem, glad you could fix it. :)

  • @silasrodrigues19
    @silasrodrigues19 2 года назад +1

    Thank you man. I was trying to solve this on Vercel

    • @h3webdevtuts
      @h3webdevtuts  2 года назад +1

      Glad I could help. Thanks for watching :)

  • @Human_Evolution-
    @Human_Evolution- 3 года назад +1

    Did not work for me. Says something about I need to update NPM I guess I had a different error. Why is Netlify so finicky?

    • @h3webdevtuts
      @h3webdevtuts  3 года назад

      Try updating npm first, might not be the netlify errror. Cheers!

  • @GabrielDias-jh1dz
    @GabrielDias-jh1dz 3 года назад +1

    Thank you man, in vercel also works

    • @h3webdevtuts
      @h3webdevtuts  3 года назад +1

      Glad you found it helpful. Thanks for watching :)

  • @mateusjunio5961
    @mateusjunio5961 Год назад

    Thank you very much!! Your video was the only one that solved my problem

  • @davidshankar1346
    @davidshankar1346 9 месяцев назад

    Thanks man for solving this prob.your save my time

  • @Matiast9477
    @Matiast9477 2 года назад +1

    This solved my problem, thank you!

  • @priyav5969
    @priyav5969 3 года назад +2

    Thanks a lot u saved my life🙏🙏🙏

    • @h3webdevtuts
      @h3webdevtuts  3 года назад +1

      Glad you got it working. Thanks for watching :)

  • @manelkhayat2627
    @manelkhayat2627 3 года назад +1

    is netlify just for react ? i try to deploy an ES6 project but still the same error ?

    • @h3webdevtuts
      @h3webdevtuts  3 года назад +1

      Hey, netlify is for a lot of things. You can deploy js projects or html / css only projects. Well there is no npm build if u wanna deploy vanilla js. In your case just deploying it to github and connecting that to netlify should work, or u can also use Github pages for that. Thanks for watching :)

    • @manelkhayat2147
      @manelkhayat2147 3 года назад +1

      Yes I used github pages, thanks you

    • @h3webdevtuts
      @h3webdevtuts  3 года назад

      @@manelkhayat2147 You are welcome :)

  • @bijaysahoo9619
    @bijaysahoo9619 2 года назад +1

    Thanks a lot. It saved my day.

  • @DaKingOfBall23
    @DaKingOfBall23 2 года назад +1

    Thanks brother!! really odd how this crashes most builds randomly and they only resolve it after asking and not proactively adding a comment or something

    • @h3webdevtuts
      @h3webdevtuts  2 года назад

      Yeah, that's the part I'm confused about as well, hopefully they will add it somewhere soon. Thanks for watching :)

  • @amarsingh4930
    @amarsingh4930 2 года назад +1

    Thank you so much , Works very well

    • @h3webdevtuts
      @h3webdevtuts  2 года назад +1

      Glad you got it working. Thank you :)

  • @nishchalbhardwaj4835
    @nishchalbhardwaj4835 3 года назад +1

    Hello, it gives me an error saying this "Command failed with exit code 127: CI = npm run build"

    • @h3webdevtuts
      @h3webdevtuts  3 года назад +1

      I think it should be CI= instead of CI = remove the space after I, maybe that's gonna work. Thanks for watching :)

  • @snowshark6206
    @snowshark6206 2 года назад +3

    it doesn't work for me, but when I typed CI=false npm run build it started work :)

    • @h3webdevtuts
      @h3webdevtuts  2 года назад

      Glad you got it working. Thanks for watching :)

  • @khangpiano549
    @khangpiano549 2 года назад +1

    Thank you! This worked.

    • @h3webdevtuts
      @h3webdevtuts  2 года назад

      Glad you got it working. Thanks for watching :)

  • @இலக்கியம்அறிவோம்

    CI= npm run build this command is not working for me. It is showing the error like "Command failed with exit code 127: CI = npm run build". Please help me for the error.

    • @h3webdevtuts
      @h3webdevtuts  3 года назад

      Hi, I could only find one thing online for your error as well and that is CI= npm run build the way I wrote it. But since you've already tried that I suggest contacting Netlify support and they will help you resolve the issue. Thanks for watching :)

  • @andyliao2981
    @andyliao2981 3 года назад +1

    it worked, thanks!!!

    • @h3webdevtuts
      @h3webdevtuts  3 года назад

      Glad you got it working. Thanks for watching :)

  • @ferasma9365
    @ferasma9365 2 года назад +1

    nice and straight-forward. Thank you.

  • @shahafmeron
    @shahafmeron 2 года назад +1

    Thank you ! finally a decent solotion

  • @tatsumii1420
    @tatsumii1420 Год назад

    BRUH I LITERALLY LOVE YOU , THANK YOU SO MUCH❤❤❤❤❤❤

  • @muhammadhaseeb2895
    @muhammadhaseeb2895 3 года назад +2

    Amazing brother. I love you

  • @deepanshukhorwal8938
    @deepanshukhorwal8938 2 года назад +1

    thnx brothers solution works very well

  • @parveshnegi104
    @parveshnegi104 27 дней назад

    I have created pipeline in aws codepipeline but not working for me

  • @HariHaran-zr1bg
    @HariHaran-zr1bg 3 года назад +1

    can we use it for gatsby also?
    like,
    CI= gatsby build

    • @h3webdevtuts
      @h3webdevtuts  3 года назад

      I'm honestly not sure but if u have similar issues you can try it. Thanks for watching :)

  • @vtvboo
    @vtvboo 10 месяцев назад

    Dude, you are life saver ❤

  • @adamwoolf9993
    @adamwoolf9993 3 года назад +1

    FANTASTIC!! Thanks so much.

    • @h3webdevtuts
      @h3webdevtuts  3 года назад

      Glad you made it work. Thanks for watching :)

  • @surajkumar-km5sk
    @surajkumar-km5sk 2 года назад +1

    Thanks man for the help its by heat god bless you bor

    • @h3webdevtuts
      @h3webdevtuts  2 года назад

      Glad I could help. Thanks for watching :)

  • @stormz2385
    @stormz2385 3 года назад +1

    Thank you so much, it worked like a charm. liked and subbed.

    • @h3webdevtuts
      @h3webdevtuts  3 года назад +1

      Thank you so much as well, much appreciated :)

  • @mohammedhanif8954
    @mohammedhanif8954 3 года назад +1

    thanks bro this work for me, but there was confusion on writing command CI= npm run build instead of this i wrote CI = npm run build which kill lot of time, if possible pin this code on comment

    • @h3webdevtuts
      @h3webdevtuts  3 года назад

      Glad you fixed it, and thanks for sharing as well!

  • @crazeislive_cil
    @crazeislive_cil 3 года назад +1

    Bro.. not working but I liked your content. Thanks and your comments are really helpful.

    • @h3webdevtuts
      @h3webdevtuts  3 года назад +1

      Hey sorry if you didn't manage to fix it. If u have any questions feel free to ask and I'll try my best to help. Thanks for the kind words, much appreciated :)

    • @crazeislive_cil
      @crazeislive_cil 3 года назад +1

      @@h3webdevtuts My website is built on react. And when i change command to Cl= run npm build 'the exit code changes to 2. And none of my repo is being deployed.... Should i change Git handler like Gitlab.

    • @h3webdevtuts
      @h3webdevtuts  3 года назад

      @@crazeislive_cil You shouldn't need to change to anything else. I think I see the issue, it should be like this CI= npm run build but u have it like this CI= run npm build, so that could be causing your issue. Let me know if that helps. Cheers!

    • @crazeislive_cil
      @crazeislive_cil 3 года назад +1

      @@h3webdevtuts Hello! Your trick worked all good for my new Project, i believe there is an issue in merging maybe with my previous repo. So thanks for your trick. I really appreciate good efforts. Thanks Buddy.

    • @h3webdevtuts
      @h3webdevtuts  3 года назад +1

      @@crazeislive_cil You are welcome. Thanks for watching :)

  • @RamandeepKaur-nh6um
    @RamandeepKaur-nh6um 2 года назад

    was stuck for 6-7 hours.... thanks

  • @rushlearning5158
    @rushlearning5158 3 года назад +1

    Awesome man

  • @lucasestevam4461
    @lucasestevam4461 3 года назад

    It's really helped me, thank you so much! greetins from Brazil

    • @h3webdevtuts
      @h3webdevtuts  3 года назад

      I'm glad I could help. Thanks for watching :)

  • @asifurrahman5436
    @asifurrahman5436 3 года назад +1

    Thanks you so much bro, you are a life saver

    • @h3webdevtuts
      @h3webdevtuts  3 года назад

      Glad I could help. Thanks for watching :)

  • @aguss3163
    @aguss3163 Год назад +1

    CI: command not found

  • @cristianguzmantamayo4904
    @cristianguzmantamayo4904 2 года назад +1

    Thank you mate

  • @asadalisoomro8937
    @asadalisoomro8937 2 года назад +1

    thank u bro. Its working

    • @h3webdevtuts
      @h3webdevtuts  2 года назад

      Glad you got it working! Thank you :)

  • @sajibdas4294
    @sajibdas4294 2 года назад +1

    Simple mistake but Success with your CI= npm run build

    • @h3webdevtuts
      @h3webdevtuts  2 года назад

      Glad you got it working! Thanks for watching :)

  • @donaswap6399
    @donaswap6399 Год назад

    thank you it worked for me!

  • @clevercoderjoy
    @clevercoderjoy 3 года назад +1

    thanks this worked for me

    • @h3webdevtuts
      @h3webdevtuts  3 года назад +1

      Glad you were able to fix it. Thanks for watching :)

  • @royfrias4379
    @royfrias4379 2 года назад +1

    Yea this did not work for me I have no idea why my Deployment is not working sigh...

    • @h3webdevtuts
      @h3webdevtuts  2 года назад

      Not sure, there could be lots of different issues, if it's netlify related better to check in with them. Thanks for watching :)

  • @AmandaChoi
    @AmandaChoi 2 года назад +1

    Thank you so much! It worked 🙏

    • @h3webdevtuts
      @h3webdevtuts  2 года назад

      Glad you got it working. Thank you :)

  • @user-bt7lf2pv2f
    @user-bt7lf2pv2f 2 года назад +1

    Thank you so much man! You the best!!!!

  • @sodiqakanmu3390
    @sodiqakanmu3390 3 года назад +1

    Thanks for the video. It worked fine for me.

    • @h3webdevtuts
      @h3webdevtuts  3 года назад

      Glad you got it working. Thanks for watching :)

  • @prasannakumar-kf2pl
    @prasannakumar-kf2pl Год назад

    it works fine as followed the steps

  • @Hrsk174
    @Hrsk174 4 года назад +1

    That fixed my issue. thanks

    • @h3webdevtuts
      @h3webdevtuts  4 года назад

      I'm glad I could help :D Thanks for watching

  • @ogulcandogan8792
    @ogulcandogan8792 Год назад

    Thanks for this solve

  • @CanaldoSiloks
    @CanaldoSiloks 10 месяцев назад

    U save me to. Thanks man!

  • @coderplus362
    @coderplus362 Год назад

    Great Tutorial

  • @bhavnagupta9902
    @bhavnagupta9902 Год назад

    Thanks, This solution is working.

  • @sabbasachisaha
    @sabbasachisaha 4 года назад +1

    Thanks a lot, it resolve my problem.

    • @h3webdevtuts
      @h3webdevtuts  4 года назад

      I'm glad you could fix it as well, thanks for watching :)

  • @kunaljethva9623
    @kunaljethva9623 3 года назад +1

    It worked, thank you very much

    • @h3webdevtuts
      @h3webdevtuts  3 года назад +1

      Glad you got it working. Thank you :)

  • @sriharsham9019
    @sriharsham9019 2 года назад +1

    Thank You so much

  • @NitinKumar-is2db
    @NitinKumar-is2db 4 года назад +1

    it didnt resolve my issue it still says
    3:23:45 PM: Error message
    3:23:45 PM: Command failed with exit code 127: CI = npm run build

    • @h3webdevtuts
      @h3webdevtuts  4 года назад +2

      There could also be other issues causing this, sorry if this didn't help you. Also if line you commented here is how you pasted it, that might be your issue. It should be CI= npm run build, there is no space before = sign, so that could be it as well, try it out.

    • @NitinKumar-is2db
      @NitinKumar-is2db 4 года назад +1

      @@h3webdevtuts no removing the spaces didnt help i have to find other ways. If u get anything related to that could solve the issue please reply. Thank you

    • @h3webdevtuts
      @h3webdevtuts  4 года назад +1

      @@NitinKumar-is2db community.netlify.com/t/netlify-not-building-command-failed-with-exit-code-1-npm-run-build/16999 , check this link and try other solutions I did, and you can also try 1 solution someone posted, they might be adding more solutions soon in the comments

    • @NitinKumar-is2db
      @NitinKumar-is2db 4 года назад +1

      @@h3webdevtuts thanks great help

    • @ShivamSharma-wm9wc
      @ShivamSharma-wm9wc 3 года назад

      I might be late it didn't solve my problem because i was using Cl (lowercase L) but it's CI(capital I)

  • @pushpaleelakumari7427
    @pushpaleelakumari7427 Год назад

    thank a lot it helped me a lot

  • @ol1175
    @ol1175 3 года назад +1

    Thanks bro ,helped me a lot

  • @adyarabiat9394
    @adyarabiat9394 3 года назад +1

    Thanks man 🙏🏼

    • @h3webdevtuts
      @h3webdevtuts  3 года назад

      No problem. Thanks for watching :)

  • @moemia902
    @moemia902 3 года назад +1

    Nice one thanks!

    • @h3webdevtuts
      @h3webdevtuts  3 года назад +1

      Glad you got it working. Thanks for watching :)

  • @ndagijimanasebastien9707
    @ndagijimanasebastien9707 3 года назад +1

    thank you very much

  • @djibrildassebe5055
    @djibrildassebe5055 Год назад

    Thanks! But does not work for me Still the same error

  • @medi64android73
    @medi64android73 Год назад

    Thank you your advice was useful

  • @spola216
    @spola216 Год назад

    thxxx broo, u helped a lot!

  • @codeeye1763
    @codeeye1763 4 года назад +1

    Thank you very much.it worked !!!

    • @h3webdevtuts
      @h3webdevtuts  4 года назад

      No worries, glad you could make it work :)

  • @eshw23
    @eshw23 2 года назад +1

    what a blessing cant even explain lol thanks

  • @cdrmr18181
    @cdrmr18181 3 года назад +1

    THANK YOU!!

  • @akinkunmi__
    @akinkunmi__ 3 года назад +1

    Thanks a lot bro!

    • @h3webdevtuts
      @h3webdevtuts  3 года назад

      You are welcome. Thanks for watching :)

  • @SonicSkier1
    @SonicSkier1 3 года назад +1

    THANK YOU SO MUCH!!!

    • @h3webdevtuts
      @h3webdevtuts  3 года назад +1

      Glad I could help. Thanks for watching :)

  • @nichaelc
    @nichaelc 2 года назад +1

    Thank you

  • @Pavankumar-xl4ov
    @Pavankumar-xl4ov Год назад +1

    Didn't work

  • @eytharotoom724
    @eytharotoom724 3 года назад +2

    still have the same issue .. could anyone please help me
    ???

    • @h3webdevtuts
      @h3webdevtuts  3 года назад

      Hey, please check this thread for other solutions if this one didn't help you community.netlify.com/t/netlify-not-building-command-failed-with-exit-code-1-npm-run-build/16999 . Cheers!

  • @susanbasnet3831
    @susanbasnet3831 Год назад

    i get
    bash: CI: command not found

  • @kasinathanb522
    @kasinathanb522 8 месяцев назад

    is that CI or Ci

  • @syedaliraza2641
    @syedaliraza2641 3 года назад +1

    Love you Bro

  • @anmolsingh6567
    @anmolsingh6567 8 месяцев назад

    It's working 🙌❣️

  • @NHThai-1
    @NHThai-1 2 года назад +1

    THX U SO MUCH