#Question one
import "core-js/modules/es6.regexp.constructor";
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: Unexpected string
at Module._compile (internal/modules/cjs/loader.js:872:18)
Solution
project root directory created
.env.development
plus configuration
VUE_CLI_BABEL_TRANSPILE_MODULES = true
Question two
failed to login
Solution, add the following configuration in .env.development
VUE_APP_BASE_API = '/api'
Question three
Mac reported node-sass version, packaged fail!
Solution:
1) because node node-sass version and there is a relationship
So, in this case, use the command, reinstall node-sass on the line
npm rebuild node-sass
Question four
If question three solutions invalid, then it is possible on your Mac, there are different node version
can be unified about the version, use the brew maintenance.
Remove the extra node
sudo rm -rf /user/local/node
Reuse brew install node or upgrade
installation node
brew install node
upgrade
brew upgrade node
After reunification version, you need to set environment variables inside the node to
use the command to view the installation of the node address
~ » brew list node
/usr/local/Cellar/node/12.10.0/bin/node
Configuring environment variables, you can / profile inside configuration in / etc, or configure the .zshrc inside
if the / etc / profile which is configured, but zsh not read the words, you can .zshrc
add a command to the end
source /etc/profile