Closed Aymkdn closed 3 years ago
There is a missing argument to the catch at https://github.com/sindresorhus/globby/blob/main/index.js#L28
catch
When I run nexe or pkg, both of them returns the same error due to globby:
nexe
pkg
globby
SyntaxError: Unexpected token {
I'm using Node v9.9.0, and it needs to be fixed with the below:
try { stat = fs.statSync(options.cwd); } catch(e) { return; }
You need to upgrade your Node.js version.
I'm using node 16.13.0 and npm 8.1.0 and still seeing this error
which version of globby should i use?
There is a missing argument to the
catch
at https://github.com/sindresorhus/globby/blob/main/index.js#L28When I run
nexe
orpkg
, both of them returns the same error due toglobby
:I'm using Node v9.9.0, and it needs to be fixed with the below: