Imagen de error
La razón del error es que no instaló algunas dependencias
Directorio de artículos
Solución uno
Primer paso
npm install --registry=https://registry.npm.taobao.org
Al instalar, es mejor obtener la imagen de Taobao en el registro más rápido = https: //registry.npm.taobao.org
Puede haber un error en esta parte: consulte la solución dos
Segundo paso
npm run build
El tercer paso
npm run dev
Resuelto con éxito
Solución dos
error de instalación de npm
D:\vue-playlist>npm install
> uglifyjs-webpack-plugin@0.4.6 postinstall D:\vue-playlist\node_modules\webpack\node_modules\uglifyjs-webpack-plugin
> node lib/post_install.js
npm WARN ajv-keywords@3.2.0 requires a peer of ajv@^6.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN The package vue-router is included as both a dev and production dependency.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.4 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
added 865 packages from 478 contributors, updated 28 packages and audited 10653 packages in 160.56s
found 2 vulnerabilities (1 moderate, 1 high)
run `npm audit fix` to fix them, or `npm audit` for details
Ejecute el siguiente comando
npm audit fix --force
Resuelto con éxito