icepkg icon indicating copy to clipboard operation
icepkg copied to clipboard

物料模板依赖安装失败

Open StarHosea opened this issue 3 years ago • 0 comments

Do you want to request a feature or report a bug? BUG What is the current behavior?

$ mkdir my-material && cd my-material
$ iceworks init
$ npm install

error log

npm ERR! path E:\WorkSpace\icejs\my-material\node_modules\pngquant-bin
npm ERR! command failed
npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c node lib/install.js
npm ERR! ‼ getaddrinfo ENOENT raw.githubusercontent.com
npm ERR!   ‼ pngquant pre-build test failed
npm ERR!   i compiling from source
npm ERR!   × Error: pngquant failed to build, make sure that libpng-dev is installed
npm ERR!     at E:\WorkSpace\icejs\my-material\node_modules\bin-build\node_modules\execa\index.js:231:11
npm ERR!     at runMicrotasks (<anonymous>)
npm ERR!     at processTicksAndRejections (node:internal/process/task_queues:96:5)
npm ERR!     at async Promise.all (index 0)


  • Iceworks CLI version:
  • Node verson:v16.12.0
  • Platform:Windows

What is the expected behavior?

依赖安装正常

StarHosea avatar Nov 04 '21 07:11 StarHosea