Cli: windows error

Created on 17 Mar 2018  路  4Comments  路  Source: sequelize/cli

hey guys, using windows 10 at home and i'm having this error:
on the mac is ok

位 yarn -v
1.3.2
位 node -v
v9.5.0
位 npm -v
5.6.0
位 mkdir tmp
位 cd tmp
位 yarn add sequelize-cli sequelize pg
位 node node_modules/.bin/sequelize init
C:\Users\rmoura\Code\tmp\node_modules\.bin\sequelize:2
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
          ^^^^^^^

SyntaxError: missing ) after argument list
    at new Script (vm.js:51:7)
    at createScript (vm.js:138:10)
    at Object.runInThisContext (vm.js:199:10)
    at Module._compile (module.js:624:28)
    at Object.Module._extensions..js (module.js:671:10)
    at Module.load (module.js:573:32)
    at tryModuleLoad (module.js:513:12)
    at Function.Module._load (module.js:505:3)
    at Function.Module.runMain (module.js:701:10)
    at startup (bootstrap_node.js:190:16)

any ideias of what is it? thanks

stale

Most helpful comment

Any reason you are running .bin/sequelize with node? It looks like it's a bash script.

Does a plain node_modules/.bin/sequelize init work?

All 4 comments

Any leads on this, folks? Some Windows machines are having the same issue.

Any reason you are running .bin/sequelize with node? It looks like it's a bash script.

Does a plain node_modules/.bin/sequelize init work?

@mikew will test soon im able to

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

KaltZK picture KaltZK  路  5Comments

TangMonk picture TangMonk  路  3Comments

eharoldreyes picture eharoldreyes  路  3Comments

OsoianMarcel picture OsoianMarcel  路  4Comments

gotrevor picture gotrevor  路  5Comments