Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

发生符号错误 #1461

Open
wtf897036362 opened this issue Jun 20, 2024 · 3 comments
Open

发生符号错误 #1461

wtf897036362 opened this issue Jun 20, 2024 · 3 comments

Comments

@wtf897036362
Copy link

  • Error: Command failed with exit code 1:
  • husky install ;(o.scripts ||= {}).prepare = 'husky'
  • SyntaxError: Unexpected token '||=' _husky@9.0.11@husky/bin.mjs:14
    Thank you!
@eivindkopperud
Copy link

What node version are you running on?
If it is <18, please upgrade.
See this config

@esetnod1
Copy link

esetnod1 commented Aug 12, 2024

However, our vue project must use the node which version is <= 14.
The issue is how to run husky on node 14

@eivindkopperud
Copy link

eivindkopperud commented Aug 12, 2024

@esetnod1 The latest version of husky8 still supports Node>=14. To use newer versions of husky one needs to upgrade Node.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants