lijinke666 / react-music-player

[Stop the maintenance] :musical_note: Maybe the best beautiful HTML5 responsive player component for react :)
https://lijinke666.github.io/react-music-player/
MIT License
714 stars 210 forks source link

历史版本的依赖包用不了了吗 #82

Closed patience00 closed 4 years ago

patience00 commented 4 years ago

Version

4.7.1

Description

我一直用的4.7.1,然后今天更新了前端代码(关于播放器的代码一点没动过),发布到服务器之后,发现拖拽失效了,播放器的圆圈一直跟着鼠标走,我版本没变过,是怎么回事呢

Steps

/**
 * code
 */

Steps to Reproduce

Expected Behavior

Current Behavior

System information

Comments

patience00 commented 4 years ago

我用npm重新install是下载的最新版的播放器代码还是4.7.1的呢,谢谢大佬

lijinke666 commented 4 years ago
  1. 先看你是否有 package-lock.json 或者 yarn.lock 之类的锁文件
  2. 其次如果 package.json 版本是 ~4.7.1 还是 ^4.7.1 如果是前者的话会下载最新的, 可以尝试将 版本改成 4.7.1 , 然后移除 node_modules 然后重新安装试试
  3. 或者尝试直接安装指定版本 npm i react-jinke-music-player@4.7.1
  4. 或者你可以贴下无法拖拽浏览器的报错
  5. 也可以 cat ./node_modules/react-jinke-music-player/lib/index.js 文件的头部有版本号, 可以确认下是否是 4.7.1
patience00 commented 4 years ago

解决了,多谢大佬