# TravisCI 运行  mocha 时报错 SyntaxError: Use of const in strict mode.  怎么办？

- Link: https://www.ixiqin.com/2019/02/05/travisci-run-mocha-times-wrong-syntaxerror-the-use-of-const-in-strict-mode-how-to-do/
- Published: 2019-02-05T10:54:01+08:00
- Author: 白宦成

如果你未指定 Node.js 的版本时，会以 _0.10.2_ 版本 运行，此版本无法使用 const ,所以，
需要指定你的 Node 版本。
