Skip to content
This repository has been archived by the owner on Oct 11, 2022. It is now read-only.

'Deploy to Now' fails #28

Open
ninjaPixel opened this issue Oct 25, 2019 · 0 comments
Open

'Deploy to Now' fails #28

ninjaPixel opened this issue Oct 25, 2019 · 0 comments

Comments

@ninjaPixel
Copy link

If I use the Deploy to Now button in the README.md, I encounter the following error after attempting a deploy:

Screenshot 2019-10-25 at 16 52 07

If I try to deploy from the command line by runnning now from within the micro-open-graph directory I get the following error, because there is no build command in the package.json file:

> Deploying ~/Git/micro-open-graph 
> Using project micro-open-graph
> Error! Your `package.json` file is missing a `build` property inside the `script` property.
More details: https://zeit.co/docs/v2/advanced/platform/frequently-asked-questions#missing-build-script

I'm using Now 2.0 and the latest docs say:

If your project contains a package.json file, no api directory, and no now.json configuration, it is expected to provide a build script that performs a static build of your frontend and outputs it to a public directory at the root of your project.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant