xtuJSer / CoCoMusic

a simple music player built by electron and vue
https://github.com/xtuJSer/CoCoMusic/commits/v3.0
GNU Lesser General Public License v3.0
914 stars 114 forks source link

打包Linux时报错。。 #67

Closed icimence closed 5 years ago

icimence commented 5 years ago

可能是我太菜了 image 这个报错是什么意思

fengT-T commented 5 years ago

不科学啊,意思是找不到地址

icimence commented 5 years ago

难道是因为我用了镜像网站? 我用的是npm run build:linux --ELECTRON_MIRROR=https://npm.taobao.org/mirrors/electron

fengT-T commented 5 years ago

image

不科学啊,我这边好像没什么问题也没有你的那些奇怪的输出

fengT-T commented 5 years ago

npm 镜像我也在用

fengT-T commented 5 years ago

我是在 .npmrc 文件(在你的~目录下会有一个.npmrc文件,如果没有就创建一个)里面配置的 镜像地址 我的配置文件内容是这样的

registry=https://registry.npm.taobao.org/ disturl=https://npm.taobao.org/dist chromedriver_cdnurl=http://cdn.npm.taobao.org/dist/chromedriver operadriver_cdnurl=http://cdn.npm.taobao.org/dist/operadriver phantomjs_cdnurl=http://cdn.npm.taobao.org/dist/phantomjs sass_binary_site=http://cdn.npm.taobao.org/dist/node-sass electron_mirror=http://cdn.npm.taobao.org/dist/electron/ selenium_cdnurl=http://npm.taobao.org/mirrors/selenium node_inspector_cdnurl=https://npm.taobao.org/mirrors/node-inspector

icimence commented 5 years ago

我看看

fengT-T commented 5 years ago

也可能是依赖问题,尝试着删除掉 node_modules 文件夹,然后 重新执行 npm i 安装依赖。

fengT-T commented 5 years ago

https://github.com/electron-userland/electron-builder/issues/2359

fengT-T commented 5 years ago

我草,你是不是在 非 linux 平台构建了 linux

icimence commented 5 years ago

是的

fengT-T commented 5 years ago

你看我的那个链接,electron 官方说他们很自豪的推出了免费的电子建设服务,目前支持build --linux在Windows 上执行

fengT-T commented 5 years ago

所以有两个很简单的解决办法,一是去linux下构建,二是 CoCoMusic/package.json 里面的build 项下的前面在添加一行 "remoteBuild": false, 第二个我没试过不知道管用不 image

icimence commented 5 years ago

ok,我试试

fengT-T commented 5 years ago

这个服务出发点是好的,为了让大家能更方便的打 linux 包,但是直接访问不了就很尴尬了

icimence commented 5 years ago

我还是乖乖用Linux吧。。。。