Symptom
const { Math, Object, Reflect } = primordials;
the reason
Using the latest version of the node
solve
Use stable version, refer to the official website explained , the current version is stable version 10.x (LTS)
yarn of use
Avoid mix and npm
installation
- Recommended: npm install -g yarn
- Not recommended: brew install yarn will cover node version, install the latest version of the node (not the LTS version), installed node version is not stable enough
homebrew install the specified version of the node
brew search node and then select a node version