yarn run v1.22.19
$ vue-cli-service build
/home/ubuntu/YesPlayMusic/node_modules/electron/index.js:17
throw new Error('Electron failed to install correctly, please delete node_modules/electron and try installing again');
^
Error: Electron failed to install correctly, please delete node_modules/electron and try installing again
at getElectronPath (/home/ubuntu/YesPlayMusic/node_modules/electron/index.js:17:11)
at Object. (/home/ubuntu/YesPlayMusic/node_modules/electron/index.js:21:18)
at Module._compile (internal/modules/cjs/loader.js:1063:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
at Module.load (internal/modules/cjs/loader.js:928:32) at Function.Module._load (internal/modules/cjs/loader.js:769:14)
at Module.require (internal/modules/cjs/loader.js:952:19) at require (internal/modules/cjs/helpers.js:88:18)
at Object. (/home/ubuntu/YesPlayMusic/node_modules/vue-cli-plugin-electron-builder/lib/testWithSpectron.js:2:22) at Module._compile (internal/modules/cjs/loader.js:1063:30)
error Command failed with exit code 1. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
yarn run v1.22.19 $ vue-cli-service build /home/ubuntu/YesPlayMusic/node_modules/electron/index.js:17 throw new Error('Electron failed to install correctly, please delete node_modules/electron and try installing again'); ^ (/home/ubuntu/YesPlayMusic/node_modules/electron/index.js:21:18)
at Module._compile (internal/modules/cjs/loader.js:1063:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
at Module.load (internal/modules/cjs/loader.js:928:32) at Function.Module._load (internal/modules/cjs/loader.js:769:14)
at Module.require (internal/modules/cjs/loader.js:952:19) at require (internal/modules/cjs/helpers.js:88:18)
at Object. (/home/ubuntu/YesPlayMusic/node_modules/vue-cli-plugin-electron-builder/lib/testWithSpectron.js:2:22) at Module._compile (internal/modules/cjs/loader.js:1063:30)
error Command failed with exit code 1. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Error: Electron failed to install correctly, please delete node_modules/electron and try installing again at getElectronPath (/home/ubuntu/YesPlayMusic/node_modules/electron/index.js:17:11) at Object.