micro-open-graph icon indicating copy to clipboard operation
micro-open-graph copied to clipboard

'Deploy to Now' fails

Open ninjaPixel opened this issue 6 years ago • 0 comments

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.

ninjaPixel avatar Oct 25 '19 16:10 ninjaPixel