Coder Social home page Coder Social logo

Comments (8)

magicdawn avatar magicdawn commented on July 27, 2024 1

需要添加一下参数 -p false, 关闭进度条显示

image

from yun-playlist-downloader.

magicdawn avatar magicdawn commented on July 27, 2024

gyp ERR! stack Error: EACCES: permission denied, mkdir '/usr/lib/node_modules/yun-playlist-downloader/node_modules/@magicdawn/get-cursor-position/.node-gyp'

权限问题, 可以尝试切换账户啥的

from yun-playlist-downloader.

dingxiaobo avatar dingxiaobo commented on July 27, 2024

可以用这个命令装 npm i pos -g --unsafe-perm

from yun-playlist-downloader.

jianfei96 avatar jianfei96 commented on July 27, 2024

可以用这个命令装 npm i pos -g --unsafe-perm

加上--unsafe-perm倒是绕过了权限问题
npm i yun-playlist-downloader -g --unsafe-perm
但又出了错误
/usr/bin/ld: final link failed: nonrepresentable section on output
collect2: error: ld returned 1 exit status
make: *** [pos.target.mk:137: Release/obj.target/pos.node] Error 1
make: Leaving directory '/usr/lib/node_modules/yun-playlist-downloader/node_modules/@magicdawn/get-cursor-position/build'
gyp ERR! build error
gyp ERR! stack Error: make failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
gyp ERR! stack at ChildProcess.emit (events.js:210:5)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:272:12)
gyp ERR! System Linux 4.19.0-6-amd64
gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /usr/lib/node_modules/yun-playlist-downloader/node_modules/@magicdawn/get-cursor-position
gyp ERR! node -v v12.13.1
gyp ERR! node-gyp -v v5.0.5
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @magicdawn/[email protected] install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @magicdawn/[email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

from yun-playlist-downloader.

magicdawn avatar magicdawn commented on July 27, 2024

我加了一个 ascii-progress 实现了一个进度条效果

image

但是这个包需要 build, 我看把它变成 optionalDependencies 能用不

from yun-playlist-downloader.

magicdawn avatar magicdawn commented on July 27, 2024

[email protected] 已发布

from yun-playlist-downloader.

DysaniazzZ avatar DysaniazzZ commented on July 27, 2024

需要添加一下参数 -p false, 关闭进度条显示

image

带进度的下载不了,会报错,把这个关了(加上 -p false 就可以了):

Error: Cannot find module '@magicdawn/ascii-progress'
Require stack:
- /usr/local/lib/node_modules/yun-playlist-downloader/lib/index.js
- /usr/local/lib/node_modules/yun-playlist-downloader/lib/bin.js
- /usr/local/lib/node_modules/yun-playlist-downloader/bin/yun
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:1029:15)
    at Function.Module._load (internal/modules/cjs/loader.js:898:27)
    at Module.require (internal/modules/cjs/loader.js:1089:19)
    at require (internal/modules/cjs/helpers.js:73:18)
    at Object.exports.downloadSongWithProgress (/usr/local/lib/node_modules/yun-playlist-downloader/lib/index.js:41:25)
    at Object.exports.downloadSong (/usr/local/lib/node_modules/yun-playlist-downloader/lib/index.js:34:24)
    at Object.<anonymous> (/usr/local/lib/node_modules/yun-playlist-downloader/lib/bin.js:162:24)
    at /usr/local/lib/node_modules/yun-playlist-downloader/node_modules/promise.map/src/index.js:29:30
    at replenish (/usr/local/lib/node_modules/yun-playlist-downloader/node_modules/promise.map/src/index.js:38:11)
    at /usr/local/lib/node_modules/yun-playlist-downloader/node_modules/promise.map/src/index.js:40:7

from yun-playlist-downloader.

DysaniazzZ avatar DysaniazzZ commented on July 27, 2024

-p false works, thx bro

from yun-playlist-downloader.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.