zonemeen / musicn

🎵 一个可播放及下载音乐的 Node.js 命令行工具
MIT License
1.65k stars 159 forks source link

终于用上了,但是有时候搜索某些歌曲会报错 #17

Closed brucmao closed 2 years ago

brucmao commented 2 years ago
Snipaste_2022-05-18_00-06-48
file:///C:/Users/brucm/AppData/Roaming/npm/pnpm-global/5/node_modules/.pnpm/musicn@1.2.6/node_modules/musicn/lib/names.js:4
  const { pathname } = new URL(option.androidUrl || option.url)
                                      ^

TypeError: Cannot read properties of undefined (reading 'androidUrl')
    at names (file:///C:/Users/brucm/AppData/Roaming/npm/pnpm-global/5/node_modules/.pnpm/musicn@1.2.6/node_modules/musicn/lib/names.js:4:39)
    at file:///C:/Users/brucm/AppData/Roaming/npm/pnpm-global/5/node_modules/.pnpm/musicn@1.2.6/node_modules/musicn/lib/choose.js:10:43
    at Array.map (<anonymous>)
    at choose (file:///C:/Users/brucm/AppData/Roaming/npm/pnpm-global/5/node_modules/.pnpm/musicn@1.2.6/node_modules/musicn/lib/choose.js:10:22)
    at musicn (file:///C:/Users/brucm/AppData/Roaming/npm/pnpm-global/5/node_modules/.pnpm/musicn@1.2.6/node_modules/musicn/lib/index.js:8:26)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async file:///C:/Users/brucm/AppData/Roaming/npm/pnpm-global/5/node_modules/.pnpm/musicn@1.2.6/node_modules/musicn/bin/musicn.js:8:3`
zonemeen commented 2 years ago
Snipaste_2022-05-18_00-06-48
file:///C:/Users/brucm/AppData/Roaming/npm/pnpm-global/5/node_modules/.pnpm/musicn@1.2.6/node_modules/musicn/lib/names.js:4
  const { pathname } = new URL(option.androidUrl || option.url)
                                      ^

TypeError: Cannot read properties of undefined (reading 'androidUrl')
    at names (file:///C:/Users/brucm/AppData/Roaming/npm/pnpm-global/5/node_modules/.pnpm/musicn@1.2.6/node_modules/musicn/lib/names.js:4:39)
    at file:///C:/Users/brucm/AppData/Roaming/npm/pnpm-global/5/node_modules/.pnpm/musicn@1.2.6/node_modules/musicn/lib/choose.js:10:43
    at Array.map (<anonymous>)
    at choose (file:///C:/Users/brucm/AppData/Roaming/npm/pnpm-global/5/node_modules/.pnpm/musicn@1.2.6/node_modules/musicn/lib/choose.js:10:22)
    at musicn (file:///C:/Users/brucm/AppData/Roaming/npm/pnpm-global/5/node_modules/.pnpm/musicn@1.2.6/node_modules/musicn/lib/index.js:8:26)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async file:///C:/Users/brucm/AppData/Roaming/npm/pnpm-global/5/node_modules/.pnpm/musicn@1.2.6/node_modules/musicn/bin/musicn.js:8:3`

你好 这个问题fix了 可以下载最新版本