maotoumao / MusicFreeDesktop

插件化、定制化、无广告的免费音乐播放器
http://musicfree.upup.fun/
GNU General Public License v3.0
2.76k stars 255 forks source link

macOS v13.5 node v18.17打包出现错误 #8

Closed djapple closed 1 year ago

djapple commented 1 year ago

git clone https://github.com/maotoumao/MusicFreeDesktop.git

进入MusicFreeDesktop文件夹 执行:
```bash
npm install
npm run make 或者 npm run package

生成的文件在根目录的out文件夹下

Originally posted by @maotoumao in https://github.com/maotoumao/MusicFreeDesktop/issues/2#issuecomment-1653700133

npm install出现错误

npm WARN deprecated @npmcli/move-file@1.1.2: This functionality has been moved to @npmcli/fs npm WARN deprecated @npmcli/move-file@2.0.1: This functionality has been moved to @npmcli/fs npm WARN deprecated asar@3.2.0: Please use @electron/asar moving forward. There is no API change, just a package name change npm ERR! code 1 npm ERR! path /Users/yy.feng/Downloads/MusicFreeDesktop-master/node_modules/electron npm ERR! command failed npm ERR! command sh -c node install.js npm ERR! RequestError: socket hang up npm ERR! at ClientRequest. (/Users/yy.feng/Downloads/MusicFreeDesktop-master/node_modules/got/dist/source/core/index.js:970:111) npm ERR! at Object.onceWrapper (node:events:629:26) npm ERR! at ClientRequest.emit (node:events:526:35) npm ERR! at origin.emit (/Users/yy.feng/Downloads/MusicFreeDesktop-master/node_modules/@szmarczak/http-timer/dist/source/index.js:43:20) npm ERR! at TLSSocket.socketOnEnd (node:_http_client:525:9) npm ERR! at TLSSocket.emit (node:events:526:35) npm ERR! at endReadableNT (node:internal/streams/readable:1359:12) npm ERR! at connResetException (node:internal/errors:720:14) npm ERR! at TLSSocket.socketOnEnd (node:_http_client:525:23) npm ERR! at TLSSocket.emit (node:events:526:35) npm ERR! at endReadableNT (node:internal/streams/readable:1359:12) npm ERR! at process.processTicksAndRejections (node:internal/process/task_queues:82:21)

npm ERR! A complete log of this run can be found in: /Users/yy.feng/.npm/_logs/2023-08-01T12_48_19_973Z-debug-0.log

maotoumao commented 1 year ago

socket hang up 怎么感觉是网络问题。。 删掉node_modules重装一下 不行就开梯子npm install😂

---- 回复的原邮件 ---- | 发件人 | @.> | | 日期 | 2023年08月01日 20:58 | | 收件人 | @.> | | 抄送至 | @.>@.> | | 主题 | [maotoumao/MusicFreeDesktop] macOS v13.5 node v18.17打包出现错误 (Issue #8) |

      ```bash

git clone https://github.com/maotoumao/MusicFreeDesktop.git

进入MusicFreeDesktop文件夹 执行:


npm install
npm run make 或者 npm run package

生成的文件在根目录的out文件夹下

Originally posted by @maotoumao in #2 (comment)

npm install出现错误

npm WARN deprecated @***@***.***: This functionality has been moved to @npmcli/fs
npm WARN deprecated @***@***.***: This functionality has been moved to @npmcli/fs
npm WARN deprecated ***@***.***: Please use @electron/asar moving forward. There is no API change, just a package name change
npm ERR! code 1
npm ERR! path /Users/yy.feng/Downloads/MusicFreeDesktop-master/node_modules/electron
npm ERR! command failed
npm ERR! command sh -c node install.js
npm ERR! RequestError: socket hang up
npm ERR! at ClientRequest. (/Users/yy.feng/Downloads/MusicFreeDesktop-master/node_modules/got/dist/source/core/index.js:970:111)
npm ERR! at Object.onceWrapper (node:events:629:26)
npm ERR! at ClientRequest.emit (node:events:526:35)
npm ERR! at origin.emit ***@***.***/http-timer/dist/source/index.js:43:20)
npm ERR! at TLSSocket.socketOnEnd (node:_http_client:525:9)
npm ERR! at TLSSocket.emit (node:events:526:35)
npm ERR! at endReadableNT (node:internal/streams/readable:1359:12)
npm ERR! at connResetException (node:internal/errors:720:14)
npm ERR! at TLSSocket.socketOnEnd (node:_http_client:525:23)
npm ERR! at TLSSocket.emit (node:events:526:35)
npm ERR! at endReadableNT (node:internal/streams/readable:1359:12)
npm ERR! at process.processTicksAndRejections (node:internal/process/task_queues:82:21)

npm ERR! A complete log of this run can be found in: /Users/yy.feng/.npm/_logs/2023-08-01T12_48_19_973Z-debug-0.log

—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: ***@***.***>
djapple commented 1 year ago

尝试换源,开VPN还是出现一样的情况,搞不定了,有时间打包一个MACOS版本好吗

xinatcg commented 1 year ago

自己手动 build 的包: https://github.com/xinatcg/MusicFreeDesktop/releases/tag/v0.0.0-manual-build 后面有时间加个 github action 自动化