From e8222ce3c672ae4d2a2b89510284189ae2e29bcf Mon Sep 17 00:00:00 2001 From: binaryify Date: Mon, 20 Jun 2022 17:20:19 +0800 Subject: [PATCH] =?UTF-8?q?npx=20=E6=96=B9=E5=BC=8F=E8=BF=90=E8=A1=8C?= =?UTF-8?q?=E5=AE=8C=E5=96=84=E5=92=8C=E5=A2=9E=E5=8A=A0=E6=96=87=E6=A1=A3?= =?UTF-8?q?=E8=AF=B4=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.MD | 4 ++++ docs/README.md | 14 ++++++++++++++ package.json | 5 +++-- 3 files changed, 21 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.MD b/CHANGELOG.MD index 4f4eaef..066daf0 100644 --- a/CHANGELOG.MD +++ b/CHANGELOG.MD @@ -1,6 +1,10 @@ # 更新日志 +### 4.6.6 | 2022.06.20 +- npx 方式运行完善和增加文档说明 + ### 4.6.5 | 2022.06.15 - 修复npx使用路径错误 + ### 4.6.4 | 2022.06.15 - 修复歌单收藏/取消收藏歌曲接口报错问题 #1551 diff --git a/docs/README.md b/docs/README.md index 5d7b95c..eb114f9 100644 --- a/docs/README.md +++ b/docs/README.md @@ -297,6 +297,20 @@ windows 下使用 git-bash 或者 cmder 等终端执行以下命令 : $ set HOST=127.0.0.1 && node app.js ``` +### npx 方式运行 +支持 npx 方式运行,会自动安装依赖和运行 +``` +npx NeteaseCloudMusicApi +``` +如果需要更新,可使用 `npx NeteaseCloudMusicApi@版本号` 方式运行 + +或者运行 +``` +npx NeteaseCloudMusicApi@latest + +``` +此命令每次执行都会使用最新版 + ## Vercel 部署 v4.0.8 加入了 Vercel 配置文件,可以直接在 Vercel 下部署了,不需要自己的服务器(访问 Vercel 部署的接口,需要额外加一个 realIP 参数,如 `/song/url?id=191254&realIP=116.25.146.177`) diff --git a/package.json b/package.json index bd461a8..eced522 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "NeteaseCloudMusicApi", - "version": "4.6.5", + "version": "4.6.6", "description": "网易云音乐 NodeJS 版 API", "scripts": { "start": "node app.js", @@ -47,7 +47,8 @@ "interface.d.ts", "module_types", "server.js", - "generateConfig.js" + "generateConfig.js", + "public" ], "dependencies": { "axios": "^0.24.0",