Comments (8)
需要添加一下参数 -p false
, 关闭进度条显示
from yun-playlist-downloader.
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.
可以用这个命令装 npm i pos -g --unsafe-perm
from yun-playlist-downloader.
可以用这个命令装
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.
我加了一个 ascii-progress 实现了一个进度条效果
但是这个包需要 build, 我看把它变成 optionalDependencies 能用不
from yun-playlist-downloader.
from yun-playlist-downloader.
需要添加一下参数
-p false
, 关闭进度条显示
带进度的下载不了,会报错,把这个关了(加上 -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.
-p false works, thx bro
from yun-playlist-downloader.
Related Issues (20)
- 貌似全部都no matchens found了
- 缺少依赖 HOT 2
- 要下载自己的喜欢歌单时会要求登录 HOT 2
- for img upload HOT 3
- 是否能够下载自己的歌单? HOT 1
- 安装报错 HOT 7
- 添加了 Cookie 下载个人喜欢返回 502 HOT 5
- 成功率很低 HOT 1
- 下载包含较多数量歌曲的歌单,报错Cannot read property 'map' of undefined HOT 2
- 下载电台报错Cannot read properties of undefined (reading 'id') HOT 2
- 如何让下载的歌曲名中包含专辑名 HOT 3
- 歌曲下载不完整 只有30秒 HOT 6
- 使用VIP的cookie后依然返回30秒(解决) HOT 2
- 是否可以获取音乐信息后写入id3tags里面?
- 是否可以附带歌词下载
- 云盘里面的歌曲支持吗?
- 下载歌曲时报, chunk-55JQJ5AH.js第556行 HOT 1
- Cannot read properties of undefined (reading 'sort') HOT 1
- 报错await SyntaxError: Unexpected reserved word HOT 1
- 405 操作频繁,请稍候再试
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from yun-playlist-downloader.