How To Declare A Sequelize-auto In Nodejs Program?
When I am declaring a sequelize-auto in my program I'm getting an error like o is not defined.I tried so many ways to rectify this problem but it doesn't work.I referred this lin
Solution 1:
I am using grunt to run this command. I was getting the same error when I was running grunt schema command. It got resolved by installing sequelize-auto globally: npm install -g sequelize-auto
Hope this was helpful.
Solution 2:
You must run command sequelize-auto -o "./models" -d sequelize_auto_test -h localhost -u my_username -p 5432 -x my_password -e postgres
in termintal, its not a JS code.
Solution 3:
You must enable PowerShell scripts execution .
For details see:
https://windowsloop.com/enable-powershell-scripts-execution-windows-10/
Post a Comment for "How To Declare A Sequelize-auto In Nodejs Program?"