• Jobs
  • Bootcamp
  • About Us
  • For professionals
    • Home
    • Jobs
    • Courses and challenges
    • Questions
    • Teachers
    • Bootcamp
  • For business
    • Home
    • Our process
    • Pricing
    • Assessments
    • Payroll
    • Blog
    • Sales
    • Salary Calculator

0

106
Views
Unexpected token { ../node_modules/fs-extra/lib/mkdirs/make-dir.js:85 } catch {

I am facing this issue while building my application-

2020-07-12 16:48:39 ....: 
                   ^
SyntaxError: Unexpected token {
    at createScript (vm.js:80:10)
    at Object.runInThisContext (vm.js:139:10)
    at Module._compile (module.js:617:28)
    at Object.Module._extensions..js (module.js:664:10)
    at Module.load (module.js:566:32)
    at tryModuleLoad (module.js:506:12)
    at Function.Module._load (module.js:498:3)
    at Module.require (module.js:597:17)
    at require (internal/module.js:11:18)..


   
                        BUILD FAILED 

SyntaxError: Unexpected token {

I am unable to understand what is causing it. I am trying to migrate code from cfn to cdk. Please help me with this issue.

about 1 year ago · Santiago Trujillo
2 answers
Answer question

0

Check this thread from GitHub: https://github.com/google/docsy/issues/265 Basically, what you need to do is to upgrade the node version to 10.0.0 or higher and update the fs-extra package to 9.0.0 or higher. For me, it just worked with the update of node.

about 1 year ago · Santiago Trujillo Report

0

As commented by Carlos, do this, please:

cd ~
curl -sL https://deb.nodesource.com/setup_14.x -o nodesource_setup.sh
sudo bash nodesource_setup.sh
sudo apt install nodejs

After this, check the version:

node -v

The result should be:

v14.16.0
about 1 year ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post job Pricing Our process Sales
Legal
Terms and conditions Privacy policy
© 2023 PeakU Inc. All Rights Reserved.