Closed hen-x closed 2 years ago
Also getting this in my project since yesterday, which prevents me to do any yarn add
$ node -v
v12.22.5
EDIT: I've done a nvm use 16
(v16.13.0
) and then it does not show this error anymore. I was able to successfuly upgrade from 0.43.0 to 0.44.0 ^^
Yeah, nullish coalescing is supported from Node 14, so we should get rid of it in our post-install script.
What is the problem?
Under
node@12.22.7
, the commandyarn global add blitz
fails at thepostinstall
step.It appears that the script at
packages/blitz/scripts/postinstall.js
uses null-coalescing (??
) syntax, which is not supported in Node 12.Both the documentation and the
engines
field of Blitz indicate that Node 12 is supported.Paste all your error logs here:
Paste all relevant code snippets here:
N/A
What are detailed steps to reproduce this?
On MacOS:
brew install node@12 && brew link node@12
yarn global add blitz
Run
blitz -v
and paste the output here:N/A — cannot install.
Please include below any other applicable logs and screenshots that show your problem:
No response