本文最后更新于 799 天前,其中的信息可能已经有所发展或是发生改变。
原创文章保留所有权利,允许提前告知征得同意并在明显位置保留原文链接的转载,任何无视版权的行为将受到搜索引擎的 DMCA 投诉。
环境
- Centos8 4C4G
经过约一个小时的折腾,先放教程
npm及环境的搭建
yum install npm -y npm update -S npm update -D npm audit fix npm install acorn webpack yarn webpack-cli git-revision-webpack-plugin -g
yum install npm -y
安装npm,没什么好说的
npm update -S
更新本地中的所有软件包且将安装包信息将加入到生产阶段的依赖(有待验证其必须性以及将会造成的后果)
npm update -D
更新本地中的所有软件包且将安装包信息将加入到开发阶段的依赖(有待验证其必须性以及将会造成的后果)
npm audit fix
检测项目依赖中的漏洞并自动安装需要更新的有漏洞的依赖,而不必再自己进行跟踪和修复。(有待验证其必须性)
npm install acorn webpack yarn webpack-cli git-revision-webpack-plugin -g
安装需要的依赖
最后的Build
[[email protected] DPlayer]# npm run-script build > [email protected] build /root/dev/DPlayer > NODE_ENV=production webpack --config webpack/prod.config.js --progress --display-error-details --colors Hash: 41450e650e7533b8009e Version: webpack 4.43.0 Time: 30132ms Built at: 2020-04-26 4:22:00 PM Asset Size Chunks Chunk Names DPlayer.min.js 156 KiB 0 [emitted] DPlayer DPlayer.min.js.map 372 KiB 0 [emitted] [dev] DPlayer Entrypoint DPlayer = DPlayer.min.js DPlayer.min.js.map [2] ./src/template/video.art 1.32 KiB {0} [built] [17] ./src/assets/play.svg 272 bytes {0} [built] [18] ./src/assets/pause.svg 309 bytes {0} [built] [19] ./src/assets/volume-up.svg 938 bytes {0} [built] [20] ./src/assets/volume-down.svg 625 bytes {0} [built] [21] ./src/assets/volume-off.svg 322 bytes {0} [built] [22] ./src/assets/full.svg 810 bytes {0} [built] [23] ./src/assets/full-web.svg 1.09 KiB {0} [built] [24] ./src/assets/setting.svg 3.43 KiB {0} [built] [25] ./src/assets/right.svg 205 bytes {0} [built] [26] ./src/assets/comment.svg 939 bytes {0} [built] [27] ./src/assets/comment-off.svg 557 bytes {0} [built] [34] ./src/css/index.scss 636 bytes {0} [built] [36] ./node_modules/css-loader/dist/cjs.js??ref--5-1!./node_modules/postcss-loader/src??ref--5-2!./node_modules/sass-loader/dist/cjs.js!./src/css/index.scss 31.1 KiB {0} [built] [57] ./src/js/index.js + 22 modules 128 KiB {0} [built] | ./src/js/index.js 301 bytes [built] | ./src/js/player.js 26.6 KiB [built] | ./src/js/utils.js 4.4 KiB [built] | ./src/js/options.js 2.54 KiB [built] | ./src/js/i18n.js 3.16 KiB [built] | ./src/js/icons.js 1.08 KiB [built] | ./src/js/template.js 8.44 KiB [built] | ./src/js/danmaku.js 16.2 KiB [built] | ./src/js/events.js 3.38 KiB [built] | ./src/js/fullscreen.js 6.98 KiB [built] | ./src/js/user.js 2.22 KiB [built] | ./src/js/subtitle.js 3.04 KiB [built] | ./src/js/bar.js 1.64 KiB [built] | ./src/js/timer.js 5.2 KiB [built] | ./src/js/bezel.js 1.37 KiB [built] | + 8 hidden modules + 43 hidden modules [[email protected] DPlayer]#
全部安装过程
(为保护鼠标,请谨慎点击)
[[email protected] ~]# yum install npm -y Repository AppStream is listed more than once in the configuration Repository extras is listed more than once in the configuration Repository PowerTools is listed more than once in the configuration Repository centosplus is listed more than once in the configuration 上次元数据过期检查:0:17:07 前,执行于 2020年04月26日 星期日 15时28分34秒。 依赖关系解决。 ====================================================================== 软件包 架构 版本 仓库 大小 ====================================================================== 安装: npm x86_64 1:6.13.4-1.10.19.0.2.module_el8.1.0+296+bef51246 AppStream 3.8 M 安装依赖关系: nodejs x86_64 1:10.19.0-2.module_el8.1.0+296+bef51246 AppStream 9.0 M 启用模块流: nodejs 10 事务概要 ====================================================================== 安装 2 软件包 总下载:13 M 安装大小:63 M 下载软件包: (1/2): npm-6.13.4-1.10.19.0.2.module_ 2.2 MB/s | 3.8 MB 00:01 (2/2): nodejs-10.19.0-2.module_el8.1. 3.6 MB/s | 9.0 MB 00:02 ---------------------------------------------------------------------- 总计 4.2 MB/s | 13 MB 00:03 运行事务检查 事务检查成功。 运行事务测试 事务测试成功。 运行事务 运行脚本: npm-1:6.13.4-1.10.19.0.2.module_el8.1.0+296+bef5124 1/1 准备中 : 1/1 安装 : npm-1:6.13.4-1.10.19.0.2.module_el8.1.0+296+bef5124 1/2 安装 : nodejs-1:10.19.0-2.module_el8.1.0+296+bef51246.x86_ 2/2 运行脚本: nodejs-1:10.19.0-2.module_el8.1.0+296+bef51246.x86_ 2/2 验证 : nodejs-1:10.19.0-2.module_el8.1.0+296+bef51246.x86_ 1/2 验证 : npm-1:6.13.4-1.10.19.0.2.module_el8.1.0+296+bef5124 2/2 已安装: npm-1:6.13.4-1.10.19.0.2.module_el8.1.0+296+bef51246.x86_64 nodejs-1:10.19.0-2.module_el8.1.0+296+bef51246.x86_64 完毕! [[email protected] ~]# cd dev/ [[email protected] dev]# git clone https://github.com/MoePlayer/DPlayer 正克隆到 'DPlayer'... remote: Enumerating objects: 6444, done. remote: Total 6444 (delta 0), reused 0 (delta 0), pack-reused 6444 接收对象中: 100% (6444/6444), 6.12 MiB | 3.46 MiB/s, 完成. 处理 delta 中: 100% (4385/4385), 完成. [[email protected] dev]# cd DPlayer/ demo/ .eslintignore .github/ package.json README.md webpack/ dist/ .eslintrc .gitignore .prettierignore src/ yarn.lock docs/ .git/ LICENSE .prettierrc .travis.yml [[email protected] dev]# cd DPlayer/ [[email protected] DPlayer]# npm run-script build > [email protected] build /root/dev/DPlayer > cross-env NODE_ENV=production webpack --config webpack/prod.config.js --progress --display-error-details --colors sh: cross-env: 未找到命令 npm ERR! code ELIFECYCLE npm ERR! syscall spawn npm ERR! file sh npm ERR! errno ENOENT npm ERR! [email protected] build: `cross-env NODE_ENV=production webpack --config webpack/prod.config.js --progress --display-error-details --colors` npm ERR! spawn ENOENT npm ERR! npm ERR! Failed at the [email protected] build script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm WARN Local package.json exists, but node_modules missing, did you mean to install? npm ERR! A complete log of this run can be found in: npm ERR! /root/.npm/_logs/2020-04-26T07_49_59_007Z-debug.log [[email protected] DPlayer]# cat /root/.npm/_logs/2020-04-26T07_49_59_007Z-debug.log 0 info it worked if it ends with ok 1 verbose cli [ '/usr/bin/node', '/usr/bin/npm', 'run-script', 'build' ] 2 info using [email protected] 3 info using [email protected] 4 verbose run-script [ 'prebuild', 'build', 'postbuild' ] 5 info lifecycle [email protected]~prebuild: [email protected] 6 info lifecycle [email protected]~build: [email protected] 7 verbose lifecycle [email protected]~build: unsafe-perm in lifecycle true 8 verbose lifecycle [email protected]~build: PATH: /usr/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/root/dev/DPlayer/node_modules/.bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin 9 verbose lifecycle [email protected]~build: CWD: /root/dev/DPlayer 10 silly lifecycle [email protected]~build: Args: [ '-c', 10 silly lifecycle 'cross-env NODE_ENV=production webpack --config webpack/prod.config.js --progress --display-error-details --colors' ] 11 info lifecycle [email protected]~build: Failed to exec build script 12 verbose stack Error: [email protected] build: `cross-env NODE_ENV=production webpack --config webpack/prod.config.js --progress --display-error-details --colors` 12 verbose stack spawn ENOENT 12 verbose stack at ChildProcess. (/usr/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:48:18) 12 verbose stack at ChildProcess.emit (events.js:198:13) 12 verbose stack at maybeClose (internal/child_process.js:982:16) 12 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5) 13 verbose pkgid [email protected] 14 verbose cwd /root/dev/DPlayer 15 verbose Linux 4.18.0-147.5.1.el8_1.x86_64 16 verbose argv "/usr/bin/node" "/usr/bin/npm" "run-script" "build" 17 verbose node v10.19.0 18 verbose npm v6.13.4 19 error code ELIFECYCLE 20 error syscall spawn 21 error file sh 22 error errno ENOENT 23 error [email protected] build: `cross-env NODE_ENV=production webpack --config webpack/prod.config.js --progress --display-error-details --colors` 23 error spawn ENOENT 24 error Failed at the [email protected] build script. 24 error This is probably not a problem with npm. There is likely additional logging output above. 25 verbose exit [ 1, true ] [[email protected] DPlayer]# npm build npm WARN build `npm build` called with no arguments. Did you mean to `npm run-script build`? [[email protected] DPlayer]# npm run-script build > [email protected] build /root/dev/DPlayer > cross-env NODE_ENV=production webpack --config webpack/prod.config.js --progress --display-error-details --colors sh: cross-env: 未找到命令 npm ERR! code ELIFECYCLE npm ERR! syscall spawn npm ERR! file sh npm ERR! errno ENOENT npm ERR! [email protected] build: `cross-env NODE_ENV=production webpack --config webpack/prod.config.js --progress --display-error-details --colors` npm ERR! spawn ENOENT npm ERR! npm ERR! Failed at the [email protected] build script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm WARN Local package.json exists, but node_modules missing, did you mean to install? npm ERR! A complete log of this run can be found in: npm ERR! /root/.npm/_logs/2020-04-26T07_51_03_290Z-debug.log [[email protected] DPlayer]# vim package.json #此处删去了第七行的cross-env [[email protected] DPlayer]# npm run-script build > [email protected] build /root/dev/DPlayer > NODE_ENV=production webpack --config webpack/prod.config.js --progress --display-error-details --colors sh: webpack: 未找到命令 npm ERR! code ELIFECYCLE npm ERR! syscall spawn npm ERR! file sh npm ERR! errno ENOENT npm ERR! [email protected] build: `NODE_ENV=production webpack --config webpack/prod.config.js --progress --display-error-details --colors` npm ERR! spawn ENOENT npm ERR! npm ERR! Failed at the [email protected] build script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm WARN Local package.json exists, but node_modules missing, did you mean to install? npm ERR! A complete log of this run can be found in: npm ERR! /root/.npm/_logs/2020-04-26T07_52_51_677Z-debug.log [[email protected] DPlayer]# cd [[email protected] ~]# npm install -g webpack npm WARN deprecated [email protected]: Please see https://github.com/lydell/urix#deprecated npm WARN deprecated [email protected]: https://github.com/lydell/resolve-url#deprecated npm WARN deprecated [email protected]: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies. npm WARN deprecated [email protected]: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2. /usr/bin/webpack -> /usr/lib/node_modules/webpack/bin/webpack.js npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected]^1.2.7 (node_modules/webpack/node_modules/chokidar/node_modules/fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"}) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/webpack/node_modules/fsevents/node_modules/abbrev): npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/usr/lib/node_modules/webpack/node_modules/fsevents/node_modules/abbrev' -> '/usr/lib/node_modules/webpack/node_modules/fsevents/node_modules/.abbrev.DELETE' npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/webpack/node_modules/fsevents/node_modules/ansi-regex): npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/usr/lib/node_modules/webpack/node_modules/fsevents/node_modules/ansi-regex' -> '/usr/lib/node_modules/webpack/node_modules/fsevents/node_modules/.ansi-regex.DELETE' npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/webpack/node_modules/fsevents/node_modules/aproba): npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/usr/lib/node_modules/webpack/node_modules/fsevents/node_modules/aproba' -> '/usr/lib/node_modules/webpack/node_modules/fsevents/node_modules/.aproba.DELETE' npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/webpack/node_modules/fsevents/node_modules/balanced-match): npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/usr/lib/node_modules/webpack/node_modules/fsevents/node_modules/balanced-match' -> '/usr/lib/node_modules/webpack/node_modules/fsevents/node_modules/.balanced-match.DELETE' npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/webpack/node_modules/fsevents/node_modules/chownr): npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/usr/lib/node_modules/webpack/node_modules/fsevents/node_modules/chownr' -> '/usr/lib/node_modules/webpack/node_modules/fsevents/node_modules/.chownr.DELETE' npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/webpack/node_modules/fsevents/node_modules/code-point-at): npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/usr/lib/node_modules/webpack/node_modules/fsevents/node_modules/code-point-at' -> '/usr/lib/node_modules/webpack/node_modules/fsevents/node_modules/.code-point-at.DELETE' npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/webpack/node_modules/fsevents/node_modules/concat-map): npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/usr/lib/node_modules/webpack/node_modules/fsevents/node_modules/concat-map' -> '/usr/lib/node_modules/webpack/node_modules/fsevents/node_modules/.concat-map.DELETE' npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/webpack/node_modules/fsevents/node_modules/console-control-strings): npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/usr/lib/node_modules/webpack/node_modules/fsevents/node_modules/console-control-strings' -> '/usr/lib/node_modules/webpack/node_modules/fsevents/node_modules/.console-control-strings.DELETE' npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/webpack/node_modules/fsevents/node_modules/core-util-is): npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/usr/lib/node_modules/webpack/node_modules/fsevents/node_modules/core-util-is' -> '/usr/lib/node_modules/webpack/node_modules/fsevents/node_modules/.core-util-is.DELETE' npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/webpack/node_modules/fsevents/node_modules/deep-extend): npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/usr/lib/node_modules/webpack/node_modules/fsevents/node_modules/deep-extend' -> '/usr/lib/node_modules/webpack/node_modules/fsevents/node_modules/.deep-extend.DELETE' npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/webpack/node_modules/fsevents/node_modules/delegates): npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/usr/lib/node_modules/webpack/node_modules/fsevents/node_modules/delegates' -> '/usr/lib/node_modules/webpack/node_modules/fsevents/node_modules/.delegates.DELETE' npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/webpack/node_modules/fsevents/node_modules/detect-libc): npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/usr/lib/node_modules/webpack/node_modules/fsevents/node_modules/detect-libc' -> '/usr/lib/node_modules/webpack/node_modules/fsevents/node_modules/.detect-libc.DELETE' npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/webpack/node_modules/fsevents/node_modules/fs.realpath): npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/usr/lib/node_modules/webpack/node_modules/fsevents/node_modules/fs.realpath' -> '/usr/lib/node_modules/webpack/node_modules/fsevents/node_modules/.fs.realpath.DELETE' npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/webpack/node_modules/fsevents/node_modules/has-unicode): npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/usr/lib/node_modules/webpack/node_modules/fsevents/node_modules/has-unicode' -> '/usr/lib/node_modules/webpack/node_modules/fsevents/node_modules/.has-unicode.DELETE' npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/webpack/node_modules/fsevents/node_modules/inherits): npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/usr/lib/node_modules/webpack/node_modules/fsevents/node_modules/inherits' -> '/usr/lib/node_modules/webpack/node_modules/fsevents/node_modules/.inherits.DELETE' npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/webpack/node_modules/fsevents/node_modules/ini): npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/usr/lib/node_modules/webpack/node_modules/fsevents/node_modules/ini' -> '/usr/lib/node_modules/webpack/node_modules/fsevents/node_modules/.ini.DELETE' npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/webpack/node_modules/fsevents/node_modules/isarray): npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/usr/lib/node_modules/webpack/node_modules/fsevents/node_modules/isarray' -> '/usr/lib/node_modules/webpack/node_modules/fsevents/node_modules/.isarray.DELETE' npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/webpack/node_modules/fsevents/node_modules/minimist): npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/usr/lib/node_modules/webpack/node_modules/fsevents/node_modules/minimist' -> '/usr/lib/node_modules/webpack/node_modules/fsevents/node_modules/.minimist.DELETE' npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/webpack/node_modules/fsevents/node_modules/ms): npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/usr/lib/node_modules/webpack/node_modules/fsevents/node_modules/ms' -> '/usr/lib/node_modules/webpack/node_modules/fsevents/node_modules/.ms.DELETE' npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/webpack/node_modules/fsevents/node_modules/npm-normalize-package-bin): npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/usr/lib/node_modules/webpack/node_modules/fsevents/node_modules/npm-normalize-package-bin' -> '/usr/lib/node_modules/webpack/node_modules/fsevents/node_modules/.npm-normalize-package-bin.DELETE' npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/webpack/node_modules/fsevents/node_modules/number-is-nan): npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/usr/lib/node_modules/webpack/node_modules/fsevents/node_modules/number-is-nan' -> '/usr/lib/node_modules/webpack/node_modules/fsevents/node_modules/.number-is-nan.DELETE' npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/webpack/node_modules/fsevents/node_modules/object-assign): npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/usr/lib/node_modules/webpack/node_modules/fsevents/node_modules/object-assign' -> '/usr/lib/node_modules/webpack/node_modules/fsevents/node_modules/.object-assign.DELETE' npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/webpack/node_modules/fsevents/node_modules/os-homedir): npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/usr/lib/node_modules/webpack/node_modules/fsevents/node_modules/os-homedir' -> '/usr/lib/node_modules/webpack/node_modules/fsevents/node_modules/.os-homedir.DELETE' npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/webpack/node_modules/fsevents/node_modules/os-tmpdir): npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/usr/lib/node_modules/webpack/node_modules/fsevents/node_modules/os-tmpdir' -> '/usr/lib/node_modules/webpack/node_modules/fsevents/node_modules/.os-tmpdir.DELETE' npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/webpack/node_modules/fsevents/node_modules/path-is-absolute): npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/usr/lib/node_modules/webpack/node_modules/fsevents/node_modules/path-is-absolute' -> '/usr/lib/node_modules/webpack/node_modules/fsevents/node_modules/.path-is-absolute.DELETE' npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/webpack/node_modules/fsevents/node_modules/process-nextick-args): npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/usr/lib/node_modules/webpack/node_modules/fsevents/node_modules/process-nextick-args' -> '/usr/lib/node_modules/webpack/node_modules/fsevents/node_modules/.process-nextick-args.DELETE' npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/webpack/node_modules/fsevents/node_modules/safe-buffer): npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/usr/lib/node_modules/webpack/node_modules/fsevents/node_modules/safe-buffer' -> '/usr/lib/node_modules/webpack/node_modules/fsevents/node_modules/.safe-buffer.DELETE' npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/webpack/node_modules/fsevents/node_modules/safer-buffer): npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/usr/lib/node_modules/webpack/node_modules/fsevents/node_modules/safer-buffer' -> '/usr/lib/node_modules/webpack/node_modules/fsevents/node_modules/.safer-buffer.DELETE' npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/webpack/node_modules/fsevents/node_modules/sax): npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/usr/lib/node_modules/webpack/node_modules/fsevents/node_modules/sax' -> '/usr/lib/node_modules/webpack/node_modules/fsevents/node_modules/.sax.DELETE' npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/webpack/node_modules/fsevents/node_modules/semver): npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/usr/lib/node_modules/webpack/node_modules/fsevents/node_modules/semver' -> '/usr/lib/node_modules/webpack/node_modules/fsevents/node_modules/.semver.DELETE' npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/webpack/node_modules/fsevents/node_modules/set-blocking): npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/usr/lib/node_modules/webpack/node_modules/fsevents/node_modules/set-blocking' -> '/usr/lib/node_modules/webpack/node_modules/fsevents/node_modules/.set-blocking.DELETE' npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/webpack/node_modules/fsevents/node_modules/signal-exit): npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/usr/lib/node_modules/webpack/node_modules/fsevents/node_modules/signal-exit' -> '/usr/lib/node_modules/webpack/node_modules/fsevents/node_modules/.signal-exit.DELETE' npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/webpack/node_modules/fsevents/node_modules/strip-json-comments): npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/usr/lib/node_modules/webpack/node_modules/fsevents/node_modules/strip-json-comments' -> '/usr/lib/node_modules/webpack/node_modules/fsevents/node_modules/.strip-json-comments.DELETE' npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/webpack/node_modules/fsevents/node_modules/util-deprecate): npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/usr/lib/node_modules/webpack/node_modules/fsevents/node_modules/util-deprecate' -> '/usr/lib/node_modules/webpack/node_modules/fsevents/node_modules/.util-deprecate.DELETE' npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/webpack/node_modules/fsevents/node_modules/wrappy): npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/usr/lib/node_modules/webpack/node_modules/fsevents/node_modules/wrappy' -> '/usr/lib/node_modules/webpack/node_modules/fsevents/node_modules/.wrappy.DELETE' npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/webpack/node_modules/fsevents/node_modules/yallist): npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/usr/lib/node_modules/webpack/node_modules/fsevents/node_modules/yallist' -> '/usr/lib/node_modules/webpack/node_modules/fsevents/node_modules/.yallist.DELETE' + [email protected] added 320 packages from 197 contributors in 51.796s [[email protected] ~]# cd dev/DPlayer/ demo/ .eslintignore .github/ package.json README.md webpack/ dist/ .eslintrc .gitignore .prettierignore src/ yarn.lock docs/ .git/ LICENSE .prettierrc .travis.yml [[email protected] ~]# cd dev/DPlayer/ [[email protected] DPlayer]# npm run-script build > [email protected] build /root/dev/DPlayer > NODE_ENV=production webpack --config webpack/prod.config.js --progress --display-error-details --colors One CLI for webpack must be installed. These are recommended choices, delivered as separate packages: - webpack-cli (https://github.com/webpack/webpack-cli) The original webpack full-featured CLI. We will use "yarn" to install the CLI via "yarn add -D". Do you want to install 'webpack-cli' (yes/no): yes Installing 'webpack-cli' (running 'yarn add -D webpack-cli')... /bin/sh: yarn: 未找到命令 undefined npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! [email protected] build: `NODE_ENV=production webpack --config webpack/prod.config.js --progress --display-error-details --colors` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the [email protected] build script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm WARN Local package.json exists, but node_modules missing, did you mean to install? npm ERR! A complete log of this run can be found in: npm ERR! /root/.npm/_logs/2020-04-26T07_55_02_018Z-debug.log [[email protected] DPlayer]# yum install yarm Repository AppStream is listed more than once in the configuration Repository extras is listed more than once in the configuration Repository PowerTools is listed more than once in the configuration Repository centosplus is listed more than once in the configuration 上次元数据过期检查:0:27:40 前,执行于 2020年04月26日 星期日 15时28分34秒。 未找到匹配的参数: yarm 错误:没有任何匹配: yarm [[email protected] DPlayer]# npm install -g yarn /usr/bin/yarn -> /usr/lib/node_modules/yarn/bin/yarn.js /usr/bin/yarnpkg -> /usr/lib/node_modules/yarn/bin/yarn.js + [email protected] added 1 package in 1.797s The original webpack full-featured CLI. We will use "yarn" to install the CLI via "yarn add -D". Do you want to install 'webpack-cli' (yes/no): yes Installing 'webpack-cli' (running 'yarn add -D webpack-cli')... /bin/sh: yarn: 未找到命令 undefined npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! [email protected] build: `NODE_ENV=production webpack --config webpack/prod.config.js --progress --display-error-details --colors` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the [email protected] build script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm WARN Local package.json exists, but node_modules missing, did you mean to install? npm ERR! A complete log of this run can be found in: npm ERR! /root/.npm/_logs/2020-04-26T07_55_02_018Z-debug.log [[email protected] DPlayer]# yum install yarm Repository AppStream is listed more than once in the configuration Repository extras is listed more than once in the configuration Repository PowerTools is listed more than once in the configuration Repository centosplus is listed more than once in the configuration 上次元数据过期检查:0:27:40 前,执行于 2020年04月26日 星期日 15时28分34秒。 未找到匹配的参数: yarm 错误:没有任何匹配: yarm [[email protected] DPlayer]# npm install -g yarn /usr/bin/yarn -> /usr/lib/node_modules/yarn/bin/yarn.js /usr/bin/yarnpkg -> /usr/lib/node_modules/yarn/bin/yarn.js + [email protected] added 1 package in 1.797s [[email protected] DPlayer]# clear [[email protected] DPlayer]# npm run-script build > [email protected] build /root/dev/DPlayer > NODE_ENV=production webpack --config webpack/prod.config.js --progress --display-error-details --colors One CLI for webpack must be installed. These are recommended choices, delivered as separate packages: - webpack-cli (https://github.com/webpack/webpack-cli) The original webpack full-featured CLI. We will use "yarn" to install the CLI via "yarn add -D". Do you want to install 'webpack-cli' (yes/no): yes Installing 'webpack-cli' (running 'yarn add -D webpack-cli')... yarn add v1.22.4 [1/4] Resolving packages... [2/4] Fetching packages... warning [email protected]: Invalid bin field for "url-loader". info [email protected]: The platform "linux" is incompatible with this module. info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation. [3/4] Linking dependencies... [4/4] Building fresh packages... success Saved lockfile. success Saved 1 new dependency. info Direct dependencies └─ [email protected] info All dependencies └─ [email protected] Done in 120.14s. { Error: Cannot find module 'webpack-cli' at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15) at Function.Module._load (internal/modules/cjs/loader.js:562:25) at Module.require (internal/modules/cjs/loader.js:692:17) at require (internal/modules/cjs/helpers.js:25:18) at runCommand.then (/usr/lib/node_modules/webpack/bin/webpack.js:143:5) at process._tickCallback (internal/process/next_tick.js:68:7) code: 'MODULE_NOT_FOUND' } npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! [email protected] build: `NODE_ENV=production webpack --config webpack/prod.config.js --progress --display-error-details --colors` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the [email protected] build 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! /root/.npm/_logs/2020-04-26T08_01_53_591Z-debug.log [[email protected] DPlayer]# npm install webpack-cli -g npm WARN deprecated [email protected]: https://github.com/lydell/resolve-url#deprecated npm WARN deprecated [email protected]: Please see https://github.com/lydell/urix#deprecated /usr/bin/webpack-cli -> /usr/lib/node_modules/webpack-cli/bin/cli.js npm WARN [email protected] requires a peer of [email protected] but none is installed. You must install peer dependencies yourself. + [email protected] added 204 packages from 129 contributors in 25.081s [[email protected] DPlayer]# npm run-script build > [email protected] build /root/dev/DPlayer > NODE_ENV=production webpack --config webpack/prod.config.js --progress --display-error-details --colors /root/dev/DPlayer/node_modules/webpack-cli/bin/cli.js:93 throw err; ^ Error: Cannot find module 'git-revision-webpack-plugin' at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15) at Function.Module._load (internal/modules/cjs/loader.js:562:25) at Module.require (internal/modules/cjs/loader.js:692:17) at require (/root/dev/DPlayer/node_modules/v8-compile-cache/v8-compile-cache.js:161:20) at Object. (/root/dev/DPlayer/webpack/prod.config.js:3:27) at Module._compile (/root/dev/DPlayer/node_modules/v8-compile-cache/v8-compile-cache.js:192:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10) at Module.load (internal/modules/cjs/loader.js:653:32) at tryModuleLoad (internal/modules/cjs/loader.js:593:12) at Function.Module._load (internal/modules/cjs/loader.js:585:3) at Module.require (internal/modules/cjs/loader.js:692:17) at require (/root/dev/DPlayer/node_modules/v8-compile-cache/v8-compile-cache.js:161:20) at WEBPACK_OPTIONS (/root/dev/DPlayer/node_modules/webpack-cli/bin/utils/convert-argv.js:114:13) at requireConfig (/root/dev/DPlayer/node_modules/webpack-cli/bin/utils/convert-argv.js:116:6) at /root/dev/DPlayer/node_modules/webpack-cli/bin/utils/convert-argv.js:123:17 at Array.forEach () at module.exports (/root/dev/DPlayer/node_modules/webpack-cli/bin/utils/convert-argv.js:121:15) at yargs.parse (/root/dev/DPlayer/node_modules/webpack-cli/bin/cli.js:71:45) at Object.parse (/root/dev/DPlayer/node_modules/webpack-cli/node_modules/yargs/yargs.js:567:18) at /root/dev/DPlayer/node_modules/webpack-cli/bin/cli.js:49:8 at Object. (/root/dev/DPlayer/node_modules/webpack-cli/bin/cli.js:366:3) at Module._compile (internal/modules/cjs/loader.js:778:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10) at Module.load (internal/modules/cjs/loader.js:653:32) at tryModuleLoad (internal/modules/cjs/loader.js:593:12) at Function.Module._load (internal/modules/cjs/loader.js:585:3) at Module.require (internal/modules/cjs/loader.js:692:17) at require (internal/modules/cjs/helpers.js:25:18) at Object. (/root/dev/DPlayer/node_modules/webpack/bin/webpack.js:156:2) at Module._compile (internal/modules/cjs/loader.js:778:30) npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! [email protected] build: `NODE_ENV=production webpack --config webpack/prod.config.js --progress --display-error-details --colors` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the [email protected] build 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! /root/.npm/_logs/2020-04-26T08_03_17_459Z-debug.log [[email protected] DPlayer]# npm install -g git-revision-webpack-plugin + [email protected] added 1 package from 1 contributor in 1.641s [[email protected] DPlayer]# npm run-script build > [email protected] build /root/dev/DPlayer > NODE_ENV=production webpack --config webpack/prod.config.js --progress --display-error-details --colors /root/dev/DPlayer/node_modules/webpack-cli/bin/cli.js:93 throw err; ^ Error: Cannot find module 'git-revision-webpack-plugin' at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15) at Function.Module._load (internal/modules/cjs/loader.js:562:25) at Module.require (internal/modules/cjs/loader.js:692:17) at require (/root/dev/DPlayer/node_modules/v8-compile-cache/v8-compile-cache.js:161:20) at Object. (/root/dev/DPlayer/webpack/prod.config.js:3:27) at Module._compile (/root/dev/DPlayer/node_modules/v8-compile-cache/v8-compile-cache.js:192:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10) at Module.load (internal/modules/cjs/loader.js:653:32) at tryModuleLoad (internal/modules/cjs/loader.js:593:12) at Function.Module._load (internal/modules/cjs/loader.js:585:3) at Module.require (internal/modules/cjs/loader.js:692:17) at require (/root/dev/DPlayer/node_modules/v8-compile-cache/v8-compile-cache.js:161:20) at WEBPACK_OPTIONS (/root/dev/DPlayer/node_modules/webpack-cli/bin/utils/convert-argv.js:114:13) at requireConfig (/root/dev/DPlayer/node_modules/webpack-cli/bin/utils/convert-argv.js:116:6) at /root/dev/DPlayer/node_modules/webpack-cli/bin/utils/convert-argv.js:123:17 at Array.forEach () at module.exports (/root/dev/DPlayer/node_modules/webpack-cli/bin/utils/convert-argv.js:121:15) at yargs.parse (/root/dev/DPlayer/node_modules/webpack-cli/bin/cli.js:71:45) at Object.parse (/root/dev/DPlayer/node_modules/webpack-cli/node_modules/yargs/yargs.js:567:18) at /root/dev/DPlayer/node_modules/webpack-cli/bin/cli.js:49:8 at Object. (/root/dev/DPlayer/node_modules/webpack-cli/bin/cli.js:366:3) at Module._compile (internal/modules/cjs/loader.js:778:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10) at Module.load (internal/modules/cjs/loader.js:653:32) at tryModuleLoad (internal/modules/cjs/loader.js:593:12) at Function.Module._load (internal/modules/cjs/loader.js:585:3) at Module.require (internal/modules/cjs/loader.js:692:17) at require (internal/modules/cjs/helpers.js:25:18) at Object. (/root/dev/DPlayer/node_modules/webpack/bin/webpack.js:156:2) at Module._compile (internal/modules/cjs/loader.js:778:30) npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! [email protected] build: `NODE_ENV=production webpack --config webpack/prod.config.js --progress --display-error-details --colors` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the [email protected] build 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! /root/.npm/_logs/2020-04-26T08_03_55_494Z-debug.log [[email protected] DPlayer]# npm install git-revision-webpack-plugin -g + [email protected] updated 1 package in 0.642s [[email protected] DPlayer]# npm install git-revision-webpack-plugin -g + [email protected] updated 1 package in 0.615s [[email protected] DPlayer]# npm run-script build > [email protected] build /root/dev/DPlayer > NODE_ENV=production webpack --config webpack/prod.config.js --progress --display-error-details --colors /root/dev/DPlayer/node_modules/webpack-cli/bin/cli.js:93 throw err; ^ Error: Cannot find module 'git-revision-webpack-plugin' at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15) at Function.Module._load (internal/modules/cjs/loader.js:562:25) at Module.require (internal/modules/cjs/loader.js:692:17) at require (/root/dev/DPlayer/node_modules/v8-compile-cache/v8-compile-cache.js:161:20) at Object. (/root/dev/DPlayer/webpack/prod.config.js:3:27) at Module._compile (/root/dev/DPlayer/node_modules/v8-compile-cache/v8-compile-cache.js:192:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10) at Module.load (internal/modules/cjs/loader.js:653:32) at tryModuleLoad (internal/modules/cjs/loader.js:593:12) at Function.Module._load (internal/modules/cjs/loader.js:585:3) at Module.require (internal/modules/cjs/loader.js:692:17) at require (/root/dev/DPlayer/node_modules/v8-compile-cache/v8-compile-cache.js:161:20) at WEBPACK_OPTIONS (/root/dev/DPlayer/node_modules/webpack-cli/bin/utils/convert-argv.js:114:13) at requireConfig (/root/dev/DPlayer/node_modules/webpack-cli/bin/utils/convert-argv.js:116:6) at /root/dev/DPlayer/node_modules/webpack-cli/bin/utils/convert-argv.js:123:17 at Array.forEach () at module.exports (/root/dev/DPlayer/node_modules/webpack-cli/bin/utils/convert-argv.js:121:15) at yargs.parse (/root/dev/DPlayer/node_modules/webpack-cli/bin/cli.js:71:45) at Object.parse (/root/dev/DPlayer/node_modules/webpack-cli/node_modules/yargs/yargs.js:567:18) at /root/dev/DPlayer/node_modules/webpack-cli/bin/cli.js:49:8 at Object. (/root/dev/DPlayer/node_modules/webpack-cli/bin/cli.js:366:3) at Module._compile (internal/modules/cjs/loader.js:778:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10) at Module.load (internal/modules/cjs/loader.js:653:32) at tryModuleLoad (internal/modules/cjs/loader.js:593:12) at Function.Module._load (internal/modules/cjs/loader.js:585:3) at Module.require (internal/modules/cjs/loader.js:692:17) at require (internal/modules/cjs/helpers.js:25:18) at Object. (/root/dev/DPlayer/node_modules/webpack/bin/webpack.js:156:2) at Module._compile (internal/modules/cjs/loader.js:778:30) npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! [email protected] build: `NODE_ENV=production webpack --config webpack/prod.config.js --progress --display-error-details --colors` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the [email protected] build 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! /root/.npm/_logs/2020-04-26T08_05_17_599Z-debug.log [[email protected] DPlayer]# [[email protected] DPlayer]# npm update -S [[email protected] DPlayer]# npm update -D [[email protected] DPlayer]# npm update -D npm WARN deprecated [email protected]: https://github.com/lydell/resolve-url#deprecated npm WARN deprecated [email protected]: Please see https://github.com/lydell/urix#deprecated npm WARN deprecated [email protected]: [email protected]<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 [email protected] npm WARN deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142 npm WARN deprecated [email protected]: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies. npm WARN deprecated [email protected]: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2. npm WARN deprecated [email protected]: Legacy versions of mkdirp are no longer supported. Please update to mkdirp 1.x. (Note that the API surface has changed to use Promises in 1.x.) npm WARN rm not removing /root/dev/DPlayer/node_modules/.bin/which as it wasn't installed by /root/dev/DPlayer/node_modules/which > [email protected] install /root/dev/DPlayer/node_modules/node-sass > node scripts/install.js Downloading binary from https://github.com/sass/node-sass/releases/download/v4.14.0/linux-x64-64_binding.node Download complete .] - : Binary saved to /root/dev/DPlayer/node_modules/node-sass/vendor/linux-x64-64/binding.node Caching binary to /root/.npm/node-sass/4.14.0/linux-x64-64_binding.node > [email protected] install /root/dev/DPlayer/node_modules/yorkie > node bin/install.js setting up Git hooks done > [email protected] postinstall /root/dev/DPlayer/node_modules/@vue/babel-preset-app/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 /root/dev/DPlayer/node_modules/@vuepress/core/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 /root/dev/DPlayer/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 /root/dev/DPlayer/node_modules/node-sass > node scripts/build.js Binary found at /root/dev/DPlayer/node_modules/node-sass/vendor/linux-x64-64/binding.node Testing binary Binary is fine > [email protected] postinstall /root/dev/DPlayer/node_modules/vuepress > opencollective-postinstall || exit 0 Thank you for using vuepress! If you rely on this package, please consider supporting our open collective: > https://opencollective.com/vuepress/donate npm notice created a lockfile as package-lock.json. You should commit this file. npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected]^1.2.7 (node_modules/chokidar/node_modules/fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"}) npm WARN [email protected] requires a peer of [email protected]^6.0.0 || ^7.0.0 but none is installed. You must install peer dependencies yourself. npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents/node_modules/abbrev): npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/root/dev/DPlayer/node_modules/fsevents/node_modules/abbrev' -> '/root/dev/DPlayer/node_modules/fsevents/node_modules/.abbrev.DELETE' npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents/node_modules/ansi-regex): npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/root/dev/DPlayer/node_modules/fsevents/node_modules/ansi-regex' -> '/root/dev/DPlayer/node_modules/fsevents/node_modules/.ansi-regex.DELETE' npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents/node_modules/aproba): npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/root/dev/DPlayer/node_modules/fsevents/node_modules/aproba' -> '/root/dev/DPlayer/node_modules/fsevents/node_modules/.aproba.DELETE' npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents/node_modules/balanced-match): npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/root/dev/DPlayer/node_modules/fsevents/node_modules/balanced-match' -> '/root/dev/DPlayer/node_modules/fsevents/node_modules/.balanced-match.DELETE' npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents/node_modules/chownr): npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/root/dev/DPlayer/node_modules/fsevents/node_modules/chownr' -> '/root/dev/DPlayer/node_modules/fsevents/node_modules/.chownr.DELETE' npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents/node_modules/code-point-at): npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/root/dev/DPlayer/node_modules/fsevents/node_modules/code-point-at' -> '/root/dev/DPlayer/node_modules/fsevents/node_modules/.code-point-at.DELETE' npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents/node_modules/concat-map): npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/root/dev/DPlayer/node_modules/fsevents/node_modules/concat-map' -> '/root/dev/DPlayer/node_modules/fsevents/node_modules/.concat-map.DELETE' npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents/node_modules/console-control-strings): npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/root/dev/DPlayer/node_modules/fsevents/node_modules/console-control-strings' -> '/root/dev/DPlayer/node_modules/fsevents/node_modules/.console-control-strings.DELETE' npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents/node_modules/core-util-is): npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/root/dev/DPlayer/node_modules/fsevents/node_modules/core-util-is' -> '/root/dev/DPlayer/node_modules/fsevents/node_modules/.core-util-is.DELETE' npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents/node_modules/deep-extend): npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/root/dev/DPlayer/node_modules/fsevents/node_modules/deep-extend' -> '/root/dev/DPlayer/node_modules/fsevents/node_modules/.deep-extend.DELETE' npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents/node_modules/delegates): npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/root/dev/DPlayer/node_modules/fsevents/node_modules/delegates' -> '/root/dev/DPlayer/node_modules/fsevents/node_modules/.delegates.DELETE' npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents/node_modules/detect-libc): npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/root/dev/DPlayer/node_modules/fsevents/node_modules/detect-libc' -> '/root/dev/DPlayer/node_modules/fsevents/node_modules/.detect-libc.DELETE' npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents/node_modules/fs.realpath): npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/root/dev/DPlayer/node_modules/fsevents/node_modules/fs.realpath' -> '/root/dev/DPlayer/node_modules/fsevents/node_modules/.fs.realpath.DELETE' npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents/node_modules/has-unicode): npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/root/dev/DPlayer/node_modules/fsevents/node_modules/has-unicode' -> '/root/dev/DPlayer/node_modules/fsevents/node_modules/.has-unicode.DELETE' npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents/node_modules/inherits): npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/root/dev/DPlayer/node_modules/fsevents/node_modules/inherits' -> '/root/dev/DPlayer/node_modules/fsevents/node_modules/.inherits.DELETE' npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents/node_modules/ini): npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/root/dev/DPlayer/node_modules/fsevents/node_modules/ini' -> '/root/dev/DPlayer/node_modules/fsevents/node_modules/.ini.DELETE' npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents/node_modules/isarray): npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/root/dev/DPlayer/node_modules/fsevents/node_modules/isarray' -> '/root/dev/DPlayer/node_modules/fsevents/node_modules/.isarray.DELETE' npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents/node_modules/minimist): npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/root/dev/DPlayer/node_modules/fsevents/node_modules/minimist' -> '/root/dev/DPlayer/node_modules/fsevents/node_modules/.minimist.DELETE' npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents/node_modules/ms): npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/root/dev/DPlayer/node_modules/fsevents/node_modules/ms' -> '/root/dev/DPlayer/node_modules/fsevents/node_modules/.ms.DELETE' npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents/node_modules/npm-normalize-package-bin): npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/root/dev/DPlayer/node_modules/fsevents/node_modules/npm-normalize-package-bin' -> '/root/dev/DPlayer/node_modules/fsevents/node_modules/.npm-normalize-package-bin.DELETE' npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents/node_modules/number-is-nan): npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/root/dev/DPlayer/node_modules/fsevents/node_modules/number-is-nan' -> '/root/dev/DPlayer/node_modules/fsevents/node_modules/.number-is-nan.DELETE' npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents/node_modules/object-assign): npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/root/dev/DPlayer/node_modules/fsevents/node_modules/object-assign' -> '/root/dev/DPlayer/node_modules/fsevents/node_modules/.object-assign.DELETE' npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents/node_modules/os-homedir): npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/root/dev/DPlayer/node_modules/fsevents/node_modules/os-homedir' -> '/root/dev/DPlayer/node_modules/fsevents/node_modules/.os-homedir.DELETE' npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents/node_modules/os-tmpdir): npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/root/dev/DPlayer/node_modules/fsevents/node_modules/os-tmpdir' -> '/root/dev/DPlayer/node_modules/fsevents/node_modules/.os-tmpdir.DELETE' npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents/node_modules/path-is-absolute): npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/root/dev/DPlayer/node_modules/fsevents/node_modules/path-is-absolute' -> '/root/dev/DPlayer/node_modules/fsevents/node_modules/.path-is-absolute.DELETE' npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents/node_modules/process-nextick-args): npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/root/dev/DPlayer/node_modules/fsevents/node_modules/process-nextick-args' -> '/root/dev/DPlayer/node_modules/fsevents/node_modules/.process-nextick-args.DELETE' npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents/node_modules/safe-buffer): npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/root/dev/DPlayer/node_modules/fsevents/node_modules/safe-buffer' -> '/root/dev/DPlayer/node_modules/fsevents/node_modules/.safe-buffer.DELETE' npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents/node_modules/safer-buffer): npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/root/dev/DPlayer/node_modules/fsevents/node_modules/safer-buffer' -> '/root/dev/DPlayer/node_modules/fsevents/node_modules/.safer-buffer.DELETE' npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents/node_modules/sax): npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/root/dev/DPlayer/node_modules/fsevents/node_modules/sax' -> '/root/dev/DPlayer/node_modules/fsevents/node_modules/.sax.DELETE' npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents/node_modules/semver): npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/root/dev/DPlayer/node_modules/fsevents/node_modules/semver' -> '/root/dev/DPlayer/node_modules/fsevents/node_modules/.semver.DELETE' npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents/node_modules/set-blocking): npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/root/dev/DPlayer/node_modules/fsevents/node_modules/set-blocking' -> '/root/dev/DPlayer/node_modules/fsevents/node_modules/.set-blocking.DELETE' npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents/node_modules/signal-exit): npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/root/dev/DPlayer/node_modules/fsevents/node_modules/signal-exit' -> '/root/dev/DPlayer/node_modules/fsevents/node_modules/.signal-exit.DELETE' npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents/node_modules/strip-json-comments): npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/root/dev/DPlayer/node_modules/fsevents/node_modules/strip-json-comments' -> '/root/dev/DPlayer/node_modules/fsevents/node_modules/.strip-json-comments.DELETE' npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents/node_modules/util-deprecate): npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/root/dev/DPlayer/node_modules/fsevents/node_modules/util-deprecate' -> '/root/dev/DPlayer/node_modules/fsevents/node_modules/.util-deprecate.DELETE' npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents/node_modules/wrappy): npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/root/dev/DPlayer/node_modules/fsevents/node_modules/wrappy' -> '/root/dev/DPlayer/node_modules/fsevents/node_modules/.wrappy.DELETE' npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents/node_modules/yallist): npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/root/dev/DPlayer/node_modules/fsevents/node_modules/yallist' -> '/root/dev/DPlayer/node_modules/fsevents/node_modules/.yallist.DELETE' + @vuepress/[email protected] + [email protected] + [email protected] + [email protected] + @babel/[email protected] + @vuepress/[email protected] + [email protected] + @vuepress/[email protected] + @babel/[email protected] + [email protected] + [email protected] + [email protected] + [email protected] + [email protected] + [email protected] + [email protected] + [email protected] + [email protected] + [email protected] + [email protected] + [email protected] + [email protected] + [email protected] + [email protected] + [email protected] + [email protected] + [email protected] + [email protected] + [email protected] + [email protected] + [email protected] + [email protected] + [email protected] + [email protected] added 1111 packages from 612 contributors, removed 40 packages, updated 361 packages and audited 32399 packages in 256.055s 49 packages are looking for funding run `npm fund` for details found 939 vulnerabilities (938 low, 1 moderate) run `npm audit fix` to fix them, or `npm audit` for details [[email protected] DPlayer]# npm audit fix npm WARN [email protected] requires a peer of [email protected]^6.0.0 || ^7.0.0 but none is installed. You must install peer dependencies yourself. npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"}) removed 1 package and updated 5 packages in 50.357s 49 packages are looking for funding run `npm fund` for details fixed 938 of 939 vulnerabilities in 32399 scanned packages 1 vulnerability required manual review and could not be updated [[email protected] DPlayer]# npm install [[email protected] DPlayer]# ^C [[email protected] DPlayer]# ^C [[email protected] DPlayer]# ^C [[email protected] DPlayer]# npm install acorn -g /usr/bin/acorn -> /usr/lib/node_modules/acorn/bin/acorn + [email protected] added 1 package in 1.273s [[email protected] DPlayer]# npm audit fix npm WARN [email protected] requires a peer of [email protected]^6.0.0 || ^7.0.0 but none is installed. You must install peer dependencies yourself. npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"}) removed 1 package in 43.457s 49 packages are looking for funding run `npm fund` for details fixed 0 of 1 vulnerability in 32399 scanned packages 1 vulnerability required manual review and could not be updated [[email protected] DPlayer]# npm run-script build > [email protected] build /root/dev/DPlayer > NODE_ENV=production webpack --config webpack/prod.config.js --progress --display-error-details --colors Hash: 41450e650e7533b8009e Version: webpack 4.43.0 Time: 30132ms Built at: 2020-04-26 4:22:00 PM Asset Size Chunks Chunk Names DPlayer.min.js 156 KiB 0 [emitted] DPlayer DPlayer.min.js.map 372 KiB 0 [emitted] [dev] DPlayer Entrypoint DPlayer = DPlayer.min.js DPlayer.min.js.map [2] ./src/template/video.art 1.32 KiB {0} [built] [17] ./src/assets/play.svg 272 bytes {0} [built] [18] ./src/assets/pause.svg 309 bytes {0} [built] [19] ./src/assets/volume-up.svg 938 bytes {0} [built] [20] ./src/assets/volume-down.svg 625 bytes {0} [built] [21] ./src/assets/volume-off.svg 322 bytes {0} [built] [22] ./src/assets/full.svg 810 bytes {0} [built] [23] ./src/assets/full-web.svg 1.09 KiB {0} [built] [24] ./src/assets/setting.svg 3.43 KiB {0} [built] [25] ./src/assets/right.svg 205 bytes {0} [built] [26] ./src/assets/comment.svg 939 bytes {0} [built] [27] ./src/assets/comment-off.svg 557 bytes {0} [built] [34] ./src/css/index.scss 636 bytes {0} [built] [36] ./node_modules/css-loader/dist/cjs.js??ref--5-1!./node_modules/postcss-loader/src??ref--5-2!./node_modules/sass-loader/dist/cjs.js!./src/css/index.scss 31.1 KiB {0} [built] [57] ./src/js/index.js + 22 modules 128 KiB {0} [built] | ./src/js/index.js 301 bytes [built] | ./src/js/player.js 26.6 KiB [built] | ./src/js/utils.js 4.4 KiB [built] | ./src/js/options.js 2.54 KiB [built] | ./src/js/i18n.js 3.16 KiB [built] | ./src/js/icons.js 1.08 KiB [built] | ./src/js/template.js 8.44 KiB [built] | ./src/js/danmaku.js 16.2 KiB [built] | ./src/js/events.js 3.38 KiB [built] | ./src/js/fullscreen.js 6.98 KiB [built] | ./src/js/user.js 2.22 KiB [built] | ./src/js/subtitle.js 3.04 KiB [built] | ./src/js/bar.js 1.64 KiB [built] | ./src/js/timer.js 5.2 KiB [built] | ./src/js/bezel.js 1.37 KiB [built] | + 8 hidden modules + 43 hidden modules [[email protected] DPlayer]#