Unexpected token error in fs-extra when building site

3
(1)

When deploying my site, I’m getting the following error:

Building sites … /builds/documentation/docs/node_modules/fs-extra/lib/mkdirs/make-dir.js:86
       } catch {
               ^
 SyntaxError: Unexpected token {
     at createScript (vm.js:80:10)

Answer:

If anyone else gets this error, just make to sure to upgrade to the latest node version. fs-extra”: “^9.0.0 required node 10 or higher.

30

How useful was this post?

Click on a star to rate it!

Average rating 3 / 5. Vote count: 1

No votes so far! Be the first to rate this post.

Scroll to Top