mehwww / oss-sync

阿里云OSS同步工具
52 stars 16 forks source link

当我升级到0.6.3后,报错SyntaxError: Use of const in strict mode. #14

Closed maskxu closed 8 years ago

maskxu commented 8 years ago

/usr/lib/node_modules/oss-sync/lib/sync.js:3 const fs = require('fs') ^^^^^ SyntaxError: Use of const in strict mode. at Module._compile (module.js:439:25) at Object.Module._extensions..js (module.js:474:10) at Module.load (module.js:356:32) at Function.Module._load (module.js:312:12) at Module.require (module.js:364:17) at require (module.js:380:17) at Object. (/usr/lib/node_modules/oss-sync/bin/osync.js:7:12) at Module._compile (module.js:456:26) at Object.Module._extensions..js (module.js:474:10) at Module.load (module.js:356:32)

当我注释掉 'use strict' 后又有其他语法错误。我对nodejs 不是很熟悉。是不是我nodejs的环境问题?我的node版本为 v0.10.36

mehwww commented 8 years ago

因为用了些 ES2015 的语法,请至少使用 node 4.x 以上版本

maskxu commented 8 years ago

thank you