Production build fails preview build succeeds Cloudflare Pages

Hi guys,

I’m testing Cloudflare pages, I ran into a strange issue; while preview builds are fine productions builds are failing, throwing an eleventy not found error. Here is the look at the log error

Thanks for the help

07:09:00.198	NPM modules installed

07:09:00.704 Installing Hugo 0.54.0
07:09:01.673 Hugo Static Site Generator v0.54.0-B1A82C61A/extended linux/amd64 BuildDate: 2019-02-01T10:04:38Z
07:09:01.674 Started restoring cached go cache
07:09:01.676 Finished restoring cached go cache
07:09:02.176 go version go1.14.4 linux/amd64
07:09:02.180 go version go1.14.4 linux/amd64
07:09:02.217 Installing missing commands
07:09:02.217 Verify run directory
07:09:02.217 Executing user command: npm run build
07:09:02.531 > [email protected] build /opt/buildhome/repo
07:09:02.531 > eleventy
07:09:02.538 sh: 1: eleventy: not found
07:09:02.543 npm ERR! code ELIFECYCLE
07:09:02.543 npm ERR! syscall spawn
07:09:02.544 npm ERR! file sh
07:09:02.544 npm ERR! errno ENOENT
07:09:02.545 npm ERR! [email protected] build: eleventy
07:09:02.545 npm ERR! spawn ENOENT
07:09:02.545 npm ERR!
07:09:02.545 npm ERR! Failed at the [email protected] build script.
07:09:02.545 npm ERR! This is probably not a problem with npm. There is likely additional logging output above