goldvideo / h265player

一套完整的Web版H.265播放器解决方案,非常适合学习交流和实际应用。基于JS码流解封装、WebAssembly(FFmpeg)视频解码,利用Canvas画布投影、AudioContext播放音频。
https://goldvideo.github.io/h265player/
1.55k stars 303 forks source link

npm run dev 出错 #27

Open fujunfei opened 4 years ago

fujunfei commented 4 years ago

请问下最新的node版本install,会不会有问题,我用的windows环境node12.18.3的版本,intall没有报错,但是npm run dev后出现下面的情况: Error: No files matching the pattern "D:\work\h265player-master\src\themes*\.css" were found. at D:\work\h265player-master\node_modules\stylelint\lib\standalone.js:214:12 at processTicksAndRejections (internal/process/task_queues.js:97:5) npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! goldvideo-player@1.0.2 dev: webpack --config build/webpack.dev.conf.js --watch --display-error-details npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the goldvideo-player@1.0.2 dev script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\lty\AppData\Roaming\npm-cache_logs\2020-09-12T09_31_46_411Z-debug.log

不知道什么原因造成的,好像还是少了什么依赖

jarry commented 4 years ago

Error: No files matching the pattern "D:\work\h265player-master\src\themes***.css" were found. 看下这个文件在吗

ryngrok commented 4 years ago

你好,大佬。我也有这样子的报错,说是没有找到themes*\.css文件,但是我去翻了这个文件夹,有这个文件夹,并且里面也有css文件的

snxly commented 4 years ago

"stylelint": "^13.5.0", "stylelint-webpack-plugin": "^0.10.5", 看一下这两个包的版本,分别安装13.5.0 和 0.10.5版本试试

iisfish123 commented 4 years ago

我也有这样的问题,请问下怎么解决?

huafeis commented 3 years ago

有谁解决了这个问题的?

Tobee4Lin commented 3 years ago

Error: No files matching the pattern "C:\Users\phantomtiger\Desktop\HEVC-video-demo\h265player-master\src\themes*\.css" were found.

  1. 首先直接去node_modules中找到\stylelint\lib\standalone.js:207行,将相关路径判空代码先注释;
  2. 然后运行npm run dev进行打包,然后dist文件夹就会生成goldplay-h265.css和goldplay-h265-sdk.js两个文件;
  3. 接着在文件根目录下使用http-server跑一个服务器,或用其他工具跑起本地服务也行,点开demo.html即可看到页面;

image

abcdxiangpan commented 2 years ago

npm run dev卡住不动了是怎么回事

yiwen03 commented 2 years ago

run dev 是一个开发模式 ,执行的webpack watch命令,如果修改代码,会自动 进行编译的。

------------------ 原始邮件 ------------------ 发件人: "goldvideo/h265player" @.>; 发送时间: 2022年4月18日(星期一) 晚上6:27 @.>; @.***>; 主题: Re: [goldvideo/h265player] npm run dev 出错 (#27)

npm run dev卡住不动了是怎么回事

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.Message ID: @.***>