一个命令搞定, npm install --save @tpyes/webpack-env 就是组件没有完全引入的原因,还有比如报axios的错误,那就安装它就OK了 npm install axios