Note that there are some explanatory texts on larger screens.

plurals
  1. POError installing Sequelize
    text
    copied!<p>i tried installing sequelize.js on my ec2 on amazon. I simply copied and pasted entire example into my brand new app from this page. <a href="http://sequelizejs.com/articles/express" rel="nofollow">http://sequelizejs.com/articles/express</a></p> <p>i suspect there is connection problem with sequelize.js to database. but i have no idea. would anyone have any idea? </p> <p>i did install mysql and created sequelize_test database.</p> <pre><code>$ echo "CREATE DATABASE sequelize_test;" | mysql -uroot $sudo netstat -tap | grep mysql tcp 0 0 localhost:mysql *:* LISTEN 21836/mysqld </code></pre> <p>this is what i get when i run node app.js</p> <pre><code>/home/ubuntu/samplePg/node_modules/sequelize/lib/sequelize.js:274 this.importCache[path] = defineCall(this, DataTypes) ^ TypeError: object is not a function at module.exports.Sequelize.import (/home/ubuntu/samplePg/node_modules/sequelize/lib/sequelize.js:274:32) at /home/ubuntu/samplePg/models/index.js:14:33 at Array.forEach (native) at Object.&lt;anonymous&gt; (/home/ubuntu/samplePg/models/index.js:13:4) at Module._compile (module.js:456:26) 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) </code></pre> <p>package.json file:</p> <pre><code>{ "name": "application-name", "version": "0.0.1", "private": true, "scripts": { "start": "node app.js" }, "dependencies": { "express": "3.4.4", "jade": "*", "pg": "~2.8.4", "sequelize": "~2.0.0-beta.2", "lodash": "~2.4.1", "mysql": "~2.0.0-rc2" } } </code></pre> <p>i have zero idea what is wrong. hope someone would have insight on this. thanks!!</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload