Command failed with exit code 1 and 127: CI= npm run build

Hi!
I need help deploying my site on netlify. I managed to do it correct one time by using CI= npm run build in my build command, but now when I had some updates with Stripe and tried to deploy the updates i get error message “Command failed with exit code 1: CI= npm run build”. I saw a few other with the same problem and i tried to add a space in my build command such as " CI = npm run build" but then I get a different error messages as " command failed with exit code 127 ci=npm run build". Can someone please help me?
My netlify site is heuristic-archimedes-2e4bb9.netlify.app and my github is github.com/Agnes-CeciliaBergqvist/LayoutInReact-bookingApp
Thanks!

Hi @agnusburger,

Your error is at Line 85: Netlify App

The relevant code is here: LayoutInReact-bookingApp/BookTrip.js at main · Agnes-CeciliaBergqvist/LayoutInReact-bookingApp · GitHub

You’ve added a . before the package name. It should be react-dom not .react-dom.

If that doesn’t fix the issue, let us know. We’d be happy to take another look.

Oh thats embarrassing… Works fine now. Thanks!

1 Like