在electron项目中,想使用sharp库,需要利用node-gyp重新编译才能引入使用。但是再利用electron-rebuild重新编译sharp的过程中,直接报错。错误信息和错误日志如下,有大佬能帮忙看一下么?找不到编译错误的具体原因
log日志:
0 info it worked if it ends with ok
1 verbose cli [ 'C:\\Program Files\\nodejs\\node.exe',
1 verbose cli 'C:\\Users\\zsai\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli 'run',
1 verbose cli 'rebuild' ]
2 info using npm@6.9.0
3 info using node@v8.9.3
4 verbose run-script [ 'prerebuild', 'rebuild', 'postrebuild' ]
5 info lifecycle lmalbum@0.0.1~prerebuild: lmalbum@0.0.1
6 info lifecycle lmalbum@0.0.1~rebuild: lmalbum@0.0.1
7 verbose lifecycle lmalbum@0.0.1~rebuild: unsafe-perm in lifecycle true
8 verbose lifecycle lmalbum@0.0.1~rebuild: PATH: C:\Users\zsai\AppData\Roaming\npm\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin;C:\Users\zsai\Desktop\lmalbum\client\lmalbum\node_modules\.bin;C:\Program Files (x86)\Common Files\Intel\Shared Libraries\redist\intel64\compiler;D:\ImageMagick-7.0.1-Q16;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files\Common Files\Autodesk Shared\;C:\Program Files\Git\cmd;C:\Program Files\VisualSVN Server\bin;C:\Program Files\nodejs\;C:\Program Files\TortoiseSVN\bin;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\TortoiseGit\bin;C:\phpStudy\PHPTutorial\php\php-7.1.13-nts;C:\Program Files (x86)\Yarn\bin\;C:\Users\zsai\AppData\Local\Programs\Python\Python27\Scripts\;C:\Users\zsai\AppData\Local\Programs\Python\Python27\;C:\Users\zsai\AppData\Local\Microsoft\WindowsApps;C:\Users\zsai\AppData\Local\Programs\Fiddler;C:\Users\zsai\AppData\Local\GitHubDesktop\bin;C:\Users\zsai\AppData\Local\.meteor\;C:\Users\zsai\AppData\Roaming\npm;C:\Users\zsai\AppData\Local\Microsoft\WindowsApps;D:\ffmpeg\bin;D:\MongoDB\Server\3.4\bin;D:\cmder;C:\Users\zsai\AppData\Local\Programs\Microsoft VS Code\bin;C:\Users\zsai\AppData\Local\Yarn\bin;
杨魅力
相关分类