Travis-ci build failed while running npm copy files script

I’m new to travis-ci and trying to deploy an excel custom functions js application(nodejs app) to GitHub pages.
I’m using npm copyfiles to copy files from src to dist post-build. This is working fine in local. But travis-ci build is failing. Error details
sh: 1: copyfiles: Permission denied
Below is the link to build error