#mikorot - build command

1 messages · Page 1 of 1 (latest)

coarse torrent
#

Hey, apologies for missing your question. Are you running in to Stripe specific errors with this build or are you generally looking for node build commands?

toxic spoke
#

When I deploy with no build command, I get a 404 page.

coarse torrent
#

If this is a Netlify build issue, it would probably be better to go to their docs/support for this question, unfortunately we are not familiar with them so we don't have official guidelines on how to build do them

toxic spoke
#

This is not a specific Netlify issue.

#

When I tried to run the test build command, it didn't deploy.

#

However, when running in VS Code, it did work.

coarse torrent
#

Is it a Stripe specific issue? If you aren't using one of our libraries I don't know if there is much advice that we can give here

toxic spoke
#

I am using Stripe Checkout.

#

JavaScript Simplified Course: https://javascriptsimplified.com

Accepting payments is one of the most important parts of any application, but getting started with accepting payments can be very daunting. In this video I will show you how to easily get started accepting payments with Stripe.

📚 Materials/References:

GitHub Code: https://github....

▶ Play video
#

With the Stripe on one server method.

coarse torrent
#

What is the build error that you are getting?

toxic spoke
#

────────────────────────────────────────────────────────────────
7:16:14 PM: 1. Build command from Netlify app ────────────────────────────────────────────────────────────────
7:16:14 PM: ​
7:16:14 PM: $ npm run devStart
7:16:14 PM: npm ERR! code ENOENT
7:16:14 PM: npm ERR! syscall open
7:16:14 PM: npm ERR! path /opt/build/repo/package.json
7:16:14 PM: npm ERR! errno -2
7:16:14 PM: npm ERR! enoent ENOENT: no such file or directory, open '/opt/build/repo/package.json'
7:16:14 PM: npm ERR! enoent This is related to npm not being able to find a file.
7:16:14 PM: npm ERR! enoent
7:16:14 PM: npm ERR! A complete log of this run can be found in:
7:16:14 PM: npm ERR! /opt/buildhome/.npm/_logs/2022-05-11T23_16_14_744Z-debug-0.log
7:16:14 PM: ​
7:16:14 PM: ────────────────────────────────────────────────────────────────
7:16:14 PM: "build.command" failed
7:16:16 PM: Creating deploy upload records
7:16:14 PM: ────────────────────────────────────────────────────────────────
7:16:14 PM: ​
7:16:14 PM: Error message
7:16:14 PM: Command failed with exit code 254: npm run devStart (https://ntl.fyi/exit-code-254)
7:16:14 PM: ​
7:16:14 PM: Error location
7:16:16 PM: Failed during stage 'building site': Build script returned non-zero exit code: 2 (https://ntl.fyi/exit-code-2)
7:16:14 PM: In Build command from Netlify app:
7:16:14 PM: npm run devStart
7:16:14 PM: ​
7:16:14 PM: Resolved config
7:16:14 PM: build:
7:16:14 PM: command: npm run devStart
7:16:14 PM: commandOrigin: ui
7:16:14 PM: publish: /opt/build/repo
7:16:14 PM: publishOrigin: default

coarse torrent
#

Unfortunately I don't think we can help you here. This is a Netlify process, we do not have insight in to what it is or how to do it properly

#

Netlify's support should be able to help you though