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:
- Created 3 years ago
- Comments:5
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@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, addexport PATH="/root/.nvm/versions/node/v14.15.4/bin:$PATH"
, fs-extra is working.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