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",