I have just switched from Windows 10 to Mac OS running on the latest Apple M1 Silicon.
This is my first project on the Mac, I installed homebrew and used it to install both node & yarn:
brew install node
brew install yarn
yarn global add @vue/cli
My Vue project was working fine on both Windows and Linux, cloned it onto my Macbook then ran yarn
to install dependencies (business as usual) then tried running the app in development mode:
yarn serve
But I kept getting random "Assertion failed" errors each time I run yarn serve
, each time it's a different file but the same error message and context:
/node_modules/axios/lib/helpers/buildURL.jsAssertion failed: (thread_id_key != 0x7777), function find_thread_id_key, file ../src/coroutine.cc, line 134.
error Command failed with signal "SIGABRT".
What's causing this? Tried Googling but as I thought, found literally nothing!
I have managed to fix the issue.
The problem was that one of the dependencies (node-fibers) isn't compatible with nodejs v16.0.0 or later.
So the solution was to uninstall node and install NVM to use Node v15.
First had to uninstall Yarn & Node:
brew uninstall yarn
brew uninstall node
Then installed NVM:
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/master/install.sh | bash
After that I installed Node v15 (or whatever version you'd prefer):
nvm install v15
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With