我使用以下命令在我的亚马逊云服务上安装了sequelize,sequelize-cli和mysql
npm install --save sequelize@2.0.0-rc1 sequelize-cli mysql
安装后,我在项目根目录中尝试了以下命令来初始化项目
node_modules/.bin/sequelize init
运行此命令后,我收到以下错误,并且不知道什么是错误的。如何让命令成功运行?
/var/www/html/node_modules/sequelize-cli/node_modules/fs-extra/lib/index.js:3
const assign = require('./util/assign')
^^^^^
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.<anonymous> (/var/www/html/node_modules/sequelize-cli/lib/helpers/asset-helper.js:3:12)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)