elf icon indicating copy to clipboard operation
elf copied to clipboard

npm install失败

Open Alwayslazydog opened this issue 5 years ago • 2 comments

ELF 版本

npm失败 不论是全局代理还是淘宝,还是官方推荐都试过惹 MAC 跟 windows下面都不行

运行环境

node v12.13.0 npm v6.12

报错信息

Writing location.js file Done. Phantomjs binary available at C:\Users\Hoga.SC-201910080547\AppData\Roaming\npm\node_modules\elf-cli\node_modules\ phantomjs-prebuilt\lib\phantom\bin\phantomjs.exe

[email protected] install C:\Users\Hoga.SC-201910080547\AppData\Roaming\npm\node_modules\elf-cli\node_modules\node-sass > node scripts/install.js

Downloading binary from https://npm.taobao.org/mirrors/node-sass//v4.5.3/win32-x64-72_binding.node Cannot download "https://npm.taobao.org/mirrors/node-sass//v4.5.3/win32-x64-72_binding.node":

HTTP error 404 Not Found

‼ read ECONNRESET ‼ pngquant pre-build test failed i compiling from source √ pngquant pre-build test passed successfully × Error: pngquant failed to build, make sure that libpng-dev is installed at C:\Users\Hoga.SC-201910080547\AppData\Roaming\npm\node_modules\elf-cli\node_modules\pngquant-bin\node_modules\bin-build\node_modules\execa\index.js:231:11 at processTicksAndRejections (internal/process/task_queues.js:93:5) at async Promise.all (index 0)

npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! [email protected] postinstall: node lib/install.js npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the [email protected] postinstall script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

Alwayslazydog avatar Dec 24 '19 02:12 Alwayslazydog

@booxood Orz

Alwayslazydog avatar Dec 26 '19 01:12 Alwayslazydog

@Alwayslazydog 这个库 pngquant 安装失败了。你先试下单独安装成功后(kornelski/pngquant),再尝试。

booxood avatar Dec 26 '19 01:12 booxood