Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SyntaxError: missing ) after argument list #914

Closed
jayeshtcpl opened this issue Sep 20, 2022 · 2 comments
Closed

SyntaxError: missing ) after argument list #914

jayeshtcpl opened this issue Sep 20, 2022 · 2 comments
Labels
has workaround Workaround provided or linked

Comments

@jayeshtcpl
Copy link

after adding in the package.json

{
  "scripts": {
    "migrate": "ts-node node_modules/node-pg-migrate -j ts"
  },

We are getting below error while doing npm run migrate up
\node_modules.bin\node-pg-migrate:2
basedir=$(dirname "$(echo "$0" | sed -e 's,\,/,g')")
^^^^^^^

SyntaxError: missing ) after argument list
at Object.compileFunction (node:vm:360:18)
at wrapSafe (node:internal/modules/cjs/loader:1055:15)
at Module._compile (node:internal/modules/cjs/loader:1090:27)
at Module._extensions..js (node:internal/modules/cjs/loader:1180:10)
at Object.require.extensions. [as .js] (node_modules\ts-node\src\index.ts:1608:43)
at Module.load (node:internal/modules/cjs/loader:1004:32)
at Function.Module._load (node:internal/modules/cjs/loader:839:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
at phase4 (node_modules\ts-node\src\bin.ts:649:14)
at bootstrap (\node_modules\ts-node\src\bin.ts:95:10)

@canastro
Copy link

@jayeshtcpl have you figured out how to fix this? Facing the same issue at the moment.

@m-haketa
Copy link

I changed the path as below, and it worked fine.

{
  "scripts": {
    "migrate": "ts-node node_modules/node-pg-migrate/bin/node-pg-migrate -j ts"
  },

@Shinigami92 Shinigami92 added the has workaround Workaround provided or linked label Apr 30, 2024
@Shinigami92 Shinigami92 closed this as not planned Won't fix, can't repro, duplicate, stale Apr 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
has workaround Workaround provided or linked
Projects
None yet
Development

No branches or pull requests

4 participants