Closed focusaurus closed 4 years ago
To workaround you should be able to run the command this way:
node --no-warnings --experimental-modules --experimental-json-modules ./node_modules/.bin/migrator migrate
@focusaurus PR with potential fix: https://github.com/reactioncommerce/migrator/pull/2
I don't have my linux laptop with me, so I haven't tested it but it works the same on Mac.
:tada: This issue has been resolved in version 1.0.1 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
macos the shebang we are using to run node with arguments works OK, but on linux it fails because
/usr/bin/env
doesn't handle parsing on whitespace and running an executable with command line arguments.This is discussed a bunch on stackoverflow. I think we'll need to write a wrapper script with a regular shebang that
exec
s node with arguments.