运行yarn报错:error C:\liuyan\tools\echarts-5.4.0\node_modules\cwebp-bin: Command failed.

完成warning和报错信息如下。

通过报错信息提示,锁定cwebp-bin,在waring中发现有提示说要更新至7或更高版本。

解决方案:在package.json中,将cwebp-bin设置版本为:"cwebp-bin": "^7.0.0"。

再运行yarn,就不报错了。

warning package-lock.json found. Your project contains lock files generated by tools other than Yarn. It is advised not to mix package managers in order to avoid resolution inconsistencies caused by unsynchronized lock files. To clear this warning, remove package-lock.json.
[1/4] Resolving packages...
warning @definitelytyped/utils > tar@2.2.2: This version of tar is no longer supported, and will not receive security updates. Please upgrade asap.
warning @definitelytyped/utils > npm-registry-client > request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
warning @definitelytyped/utils > npm-registry-client > request > har-validator@5.1.5: this library is no longer supported   
warning @definitelytyped/utils > npm-registry-client > request > uuid@3.4.0: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
warning cwebp-bin > bin-build > tempfile > uuid@3.4.0: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.      
warning dtslint > @definitelytyped/utils > @qiwi/npm-registry-client > request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
warning jest > @jest/core > jest-haste-map > sane@4.1.0: some dependency vulnerabilities fixed, support for node < 10 dropped, and newer ECMAScript syntax/features added
warning jest > @jest/core > jest-haste-map > sane > micromatch > snapdragon > source-map-resolve@0.5.3: See https://github.com/lydell/source-map-resolve#deprecated
warning jest > @jest/core > jest-haste-map > sane > micromatch > snapdragon > source-map-resolve > source-map-url@0.4.1: See https://github.com/lydell/source-map-url#deprecated
warning jest > @jest/core > jest-haste-map > sane > micromatch > snapdragon > source-map-resolve > resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
warning jest > @jest/core > jest-haste-map > sane > micromatch > snapdragon > source-map-resolve > urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
warning rollup > fsevents@2.1.3: "Please update to latest v2.3 or v2.2"
warning socket.io > debug@4.1.1: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https://github.com/visionmedia/debug/issues/797)
warning socket.io > socket.io-parser > debug@4.1.1: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https://github.com/visionmedia/debug/issues/797)
warning socket.io > engine.io > debug@4.1.1: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https://github.com/visionmedia/debug/issues/797)
[2/4] Fetching packages...
[3/4] Linking dependencies...
[4/4] Building fresh packages...
[1/3] ⠄ cwebp-bin
[2/3] ⠄ esbuild
error C:\liuyan\tools\echarts-5.4.0\node_modules\cwebp-bin: Command failed.
Exit code: 1
Command: node lib/install.js
Arguments:
Directory: C:\liuyan\tools\echarts-5.4.0\node_modules\cwebp-bin
Output:
getaddrinfo ENOENT raw.githubusercontent.com
cwebp pre-build test failed
compiling from source
Error: Command failed: C:\WINDOWS\system32\cmd.exe /s /c "./configure --disable-shared --prefix="C:\liuyan\tools\echarts-5.4.0\node_modules\cwebp-bin\vendor" --bindir="C:\liuyan\tools\echarts-5.4.0\node_modules\cwebp-bin\vendor""
'.' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���


    at C:\liuyan\tools\echarts-5.4.0\node_modules\execa\index.js:231:11
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:95:5)
                                                             

posted @ 2022-10-04 15:21  银河1992  阅读(1208)  评论(0编辑  收藏  举报