S3 issue for cd

I have issue when cd my Vue JS

the log is like this

Logging in with Access Key: ****************5KEC
1783/home/travis/.rvm/gems/ruby-2.4.5/gems/dpl-s3-1.10.12/lib/dpl/provider/s3.rb:71:in `chdir': No such file or directory @ dir_chdir - build (Errno::ENOENT)
1784	from /home/travis/.rvm/gems/ruby-2.4.5/gems/dpl-s3-1.10.12/lib/dpl/provider/s3.rb:71:in `push_app'
1785	from /home/travis/.rvm/gems/ruby-2.4.5/gems/dpl-1.10.12/lib/dpl/provider.rb:199:in `block in deploy'
1786	from /home/travis/.rvm/gems/ruby-2.4.5/gems/dpl-1.10.12/lib/dpl/cli.rb:41:in `fold'
1787	from /home/travis/.rvm/gems/ruby-2.4.5/gems/dpl-1.10.12/lib/dpl/provider.rb:199:in `deploy'
1788	from /home/travis/.rvm/gems/ruby-2.4.5/gems/dpl-s3-1.10.12/lib/dpl/provider/s3.rb:124:in `deploy'
1789	from /home/travis/.rvm/gems/ruby-2.4.5/gems/dpl-1.10.12/lib/dpl/cli.rb:32:in `run'
1790	from /home/travis/.rvm/gems/ruby-2.4.5/gems/dpl-1.10.12/lib/dpl/cli.rb:7:in `run'
1791	from /home/travis/.rvm/gems/ruby-2.4.5/gems/dpl-1.10.12/bin/dpl:5:in `<top (required)>'
1792	from /home/travis/.rvm/gems/ruby-2.4.5/bin/dpl:23:in `load'
1793	from /home/travis/.rvm/gems/ruby-2.4.5/bin/dpl:23:in `<main>'

my config something like this

language: node_js
node_js:
  - '10'
cache:
  npm: true
  directories:
    - node_modules
before_deploy:
  - npm run build
deploy:
  provider: s3
  access_key_id: $AWS_ACCESS_KEY_ID
  secret_access_key: $AWS_SECRET_ACCESS_KEY
  bucket: $S3_BUCKET
  local_dir: build
  skip_cleanup: true
  acl: public_read
  on:
    branch: master

Can you add ls -al build in your before_deploy: section to confirm this directory exists before the deployment phases?

i.e.

before_deploy:
  - npm run build
  - ls -al build