After switching to a new computer I installed the latest version of Node (v17). That was the cause of the “primordials is not defined” error.
A quick solution would be to downgrade the Node. I’ve found out that Node version 12 is compatible with Gulp version 3.*
How to check Node version in terminal
If you’re using Node version 14 or above, just downgrade it to version 12.
How to downgrade Node
brew unlink node brew install [email protected] brew link [email protected]
I hope you learned something new today. And if you did, please leave a comment and check other Vue.js tutorials.
Want to share this with your friends?