question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

make-dir catch error on Node.js v14.15.1 and v14.15.4

See original GitHub issue
  • Operating System: Linux backend 4.15.0-122-generic #124-Ubuntu SMP Thu Oct 15 13:03:05 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
  • Node.js version: v14.15.1 and v14.15.4
  • fs-extra version: fs-extra@9.0.1

My Node runtime version is v14.15.1 and v14.15.4, got same issue

export PATH="$PATH:/***/.nvm/versions/node/v14.15.1/bin"

...

nest build
out: 
err: /var/www/backend/yios-task-development/node_modules/fs-extra/lib/mkdirs/make-dir.js:85
err:       } catch {
err:               ^
err: 
err: SyntaxError: Unexpected token {
err:     at createScript (vm.js:80:10)
err:     at Object.runInThisContext (vm.js:139:10)
err:     at Module._compile (module.js:616:28)
err:     at Object.Module._extensions..js (module.js:663:10)
err:     at Module.load (module.js:565:32)
err:     at tryModuleLoad (module.js:505:12)
err:     at Function.Module._load (module.js:497:3)
err:     at Module.require (module.js:596:17)
err:     at require (internal/module.js:11:18)

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5

github_iconTop GitHub Comments

2reactions
Kennytiancommented, Jan 13, 2021

@RyanZim Thanks RyanZim, it’s my fault and find really reason, CI login my server use /usr/bin/node,this node runtime is ‘v8.10.0’, so i update my CI script, add export PATH="/root/.nvm/versions/node/v14.15.4/bin:$PATH", fs-extra is working.

0reactions
Kennytiancommented, Jan 16, 2021

Thank you for your fast reply, today it’s too late (11:40 PM in China), I will provide more details error message at tomorrow. Thanks again

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to install node.tar.xz file in linux - Stack Overflow
Steps to download and install node in ubuntu. Step 1: Download latest or recommended node .tar.xz file from https://nodejs.org/en/.
Read more >
nvm install node fails to install on macOS Big Sur M1 Chip
I'm trying to install the latest version of node using nvm. I've just got the newly released SIlicon Macbook Pro with the M1...
Read more >
The Node.js Handbook - The Valley of Code
This allows Node.js to handle thousands of concurrent connections with a single server without introducing the burden of managing thread concurrency, ...
Read more >
Unable to install blocks-cli - #22 by Danny_Eck
Hello, I'm trying to create a new block, but npm install -g @airtable/blocks-cli is not working The error log: ERR! stack at maybeClose ......
Read more >
Node.js fs.mkdir() Method - GeeksforGeeks
Directory Structure After running the code: Note: If you will run this program again, then it will display an error message as the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found