Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

320
Views
TypeScript Yarn app error while downloading -> SyntaxError: Unexpected token '.'

So this is my first time using yarn for applications and I'm having this issue:

SyntaxError: Unexpected token '.'
    at wrapSafe (internal/modules/cjs/loader.js:915:16)
    at Module._compile (internal/modules/cjs/loader.js:963:27)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
    at Module.load (internal/modules/cjs/loader.js:863:32)
    at Function.Module._load (internal/modules/cjs/loader.js:708:14)
    at Module.require (internal/modules/cjs/loader.js:887:19)
    at require (internal/modules/cjs/helpers.js:74:18)
    at Object.<anonymous> (/home/user/.config/yarn/global/node_modules/@poppinss/utils/build/src/Helpers/index.js:56:31)
    at Module._compile (internal/modules/cjs/loader.js:999:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
error Command failed.
Exit code: 1
Command: /home/user/.yarn/bin/create-adonis-ts-app
Arguments: cnc
Directory: /home/user
Output:

This is the second step of the installation and I'm just running this command: yarn create adonis-ts-app cnc

This first part of the installation looks fine but here it is:

yarn create v1.22.18
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
[4/4] Building fresh packages...

success Installed "create-adonis-ts-app@4.0.6" with binaries:
      - create-adonis-ts-app
/home/user/.config/yarn/global/node_modules/@poppinss/utils/build/src/Helpers/string.js:241
        return `${values[0]}${options?.pairSeparator || ' and '}${values[1]}`;

I'm also new to TS so I don't really know how to handle this errors. Thanks!

(I'm running PopOS)

The command should install the packages and help me with the files but the installation failed in the second step.

about 4 years ago · Juan Pablo Isaza
2 answers
Answer question

0

I had this error a while ago when I upgraded to NodeJS v16.14.0.
Going back to v16.13.2 fixed it for me.
It seems to be a bug in NodeJS.

about 4 years ago · Juan Pablo Isaza Report

0

it's just a syntax error. Please review your code once.

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!