网易云接口的使用-NeteaseCloudMusicApi项目的启动

网易云接口的使用

接口使用地址:接口文档

1、首先用git将GitHub上的这个项目克隆下来

  • 克隆地址:项目所在github地址

    git clone https://github.com/Binaryify/NeteaseCloudMusicApi
    

2、安装node

查看项目要求:需要 NodeJS 8.12+ 环境。

安装步骤:node安装教程

3、在NeteaseCloudMusicApi文件夹下git bash

+ 依次输入以下命令:npm install中有警告,提示core-js版本太低,不用管它。

  • 安装node后自带有npm,npm install该命令不用再执行。直接运行node app.js运行项目。
    npm install ----安装(第一次安装好后下一次直接运行项目就启动了)

node app.js		----运行
  • 完成后该项目就启动了,参照接口文档就可以调用接口。
    在这里插入图片描述

    例如:http://localhost:3000/song/url?id=1293953338


Administrator@FKW7JIF862Y1F92 MINGW64 /g/2019暑假学习目标/9.vue/NeteaseCloudMusicApi (master)
$ npm install
npm WARN deprecated [email protected]: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3.

> [email protected] install G:\2019暑假学习目标\9.vue\NeteaseCloudMusicApi\node_modules\husky
> node husky install

husky > Setting up git hooks
husky > Done

> [email protected] postinstall G:\2019暑假学习目标\9.vue\NeteaseCloudMusicApi\node_modules\core-js
> node -e "try{require('./postinstall')}catch(e){}"

Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!

The project needs your help! Please consider supporting of core-js on Open Collective or Patreon:
> https://opencollective.com/core-js
> https://www.patreon.com/zloirock

Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)


> [email protected] postinstall G:\2019暑假学习目标\9.vue\NeteaseCloudMusicApi\node_modules\husky
> opencollective-postinstall || exit 0

Thank you for using husky!
If you rely on this package, please consider supporting our open collective:
> https://opencollective.com/husky/donate

npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN [email protected] No repository field.

added 540 packages from 892 contributors in 215.59s

22 packages are looking for funding
  run `npm fund` for details


Administrator@FKW7JIF862Y1F92 MINGW64 /g/2019暑假学习目标/9.vue/NeteaseCloudMusicApi (master)
$ node app.js
server running @ http://localhost:3000
[OK] /search?keywords= 海阔天空
[OK] /song/url?id=33894312

你可能感兴趣的:(网易云接口)