travis-ci 构建 PHP 应用 怎么设置 Node.js 的版本?

.travis.yml 文件如下

language: php
php: 7.1
install:
  - travis_retry composer install --no-interaction --prefer-dist --no-suggest
  - travis_retry npm install
before_script:
  - cp .env.example .env
  - travis_retry php artisan key:generate
  - travis_retry npm run production
script:
  vendor/bin/phpunit

file
由于预装的node版本太低 后面 npm run production 就报错了
怎么样才能设置 node版本呢?
谢谢大家

《L04 微信小程序从零到发布》
从小程序个人账户申请开始,带你一步步进行开发一个微信小程序,直到提交微信控制台上线发布。
《L03 构架 API 服务器》
你将学到如 RESTFul 设计风格、PostMan 的使用、OAuth 流程,JWT 概念及使用 和 API 开发相关的进阶知识。
讨论数量: 0
(= ̄ω ̄=)··· 暂无内容!

讨论应以学习和精进为目的。请勿发布不友善或者负能量的内容,与人为善,比聪明更重要!