2016-04-14 8 views
3

私の質問は、実行する方法ですsequelize ES6で書かれた移行/シードですか?ES6とsequelize-cli

私はbabel-nodeと試みたが、奇妙なエラー

コマンド

node_modules/babel-cli/lib/babel-node.js node_modules/sequelize-cli/bin/sequelize db:seed 

エラー

node_modules/babel-cli/lib/babel-node.js: line 1: /Applications: is a directory 
node_modules/babel-cli/lib/babel-node.js: line 3: /Applications: is a directory 
node_modules/babel-cli/lib/babel-node.js: line 4: 127.0.0.1: command not found 
node_modules/babel-cli/lib/babel-node.js: line 5: syntax error near unexpected token `(' 
node_modules/babel-cli/lib/babel-node.js: line 5: ` * when found, before invoking the "real" _babel-node(1) executable.' 
+0

ES6の移行/シードの例を挙げることはできますか? –

答えて

1

を取得すると、この設定試してみてください:https://gist.github.com/andrewmunro/030f0bf62453239c495b0347c8cd1247を。

私のために働いています。

+0

こんにちはMikhail、ご意見ありがとうございます。あなたが共有しているリポジトリの手順に従っていますが、config.jsファイルの の「my/app/config」から設定をインポートします。 私はここで何を輸入すべきか分からない。私と一緒にそれを分かち合うことができます、私はあなたの時間を感謝します。ありがとうございました。 – clenondavis