当配置项目 webpack 的 externals 选项,将 vue 排除在 vendor 之外时, postinstall 执行会导致获取 vue 的版本出错,从而导致页面出现Object() is not a function 的问题 