I'm getting the error "bash: node_modules/.bin/sequelize: Permission denied" while following the instructions at http://docs.sequelizejs.com/manual/tutorial/migrations.html. This is my first time using Sequelize CLI and I'm fairly new to Linux. Can someone tell me how to execute the command "node_modules/.bin/sequelize init" without getting this error? This command is under the Bootstrapping section at the top of the provided link.
I tried sudo and su but that hasn't helped with this situation. Thanks. When I try
ls -l node_modules/.bin/sequelize
I get as output
lrwxrwxrwx 1 <account logged in> <account logged in> 30 Jul 19 23:46 node_modules/.bin/sequelize -> ../sequelize-cli/lib/sequelize
so I think the file has read, write, and execute permissions for users, groups, and others.
If I try
ls -l sequelize the output is
ls: cannot access 'sequelize': No such file or directory.