vue-electron-music项目运行记录
## [vue-electron-music](https://github.com/eugeneCN/vue-electron-music)
```shell
$ node -v
v8.9.4
$ npm -v
5.6.0
```
### 项目安装
1. 下载项目
```shell
$ git clone https://github.com/eugeneCN/vue-electron-music
```
2. 运行API服务
```shell
$ cd vue-electron-music/api
$ npm install
$ npm start
```
3. 运行客户端
```shell
$ cd vue-electron-music
$ cnpm install
$ npm run dev
```
4. Module not found: Error: Can't resolve 'babel-runtime/helpers/extends'
![file](https://i.loli.net/2019/02/12/5c6285a4d1dfa.png)
解决办法:
```shell
$ npm install --save babel-runtime --save
```
5. Module build failed: Error: ENOENT: no such file or directory, scandir 'E:\Workspace\Electron\vue-electron-music\node_modules\.npminstall\node-sass\4.7.2\node-sass\vendor'
![file](https://i.loli.net/2019/02/12/5c6285c3cca07.png)
解决办法:
```shell
$ npm rebuild node-sass
```
6.运行效果图(非常棒)
![file](https://i.loli.net/2019/02/12/5c6285d57f774.png)
![file](https://i.loli.net/2019/02/12/5c6285e8bdc04.png)
### 参考文章
1. [https://github.com/babel/babel/issues/1872](https://github.com/babel/babel/issues/1872)
2. [http://blog.csdn.net/u010429286/article/details/78651917](http://blog.csdn.net/u010429286/article/details/78651917)