Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

npm install失败 #48

Open
Alwayslazydog opened this issue Dec 24, 2019 · 2 comments
Open

npm install失败 #48

Alwayslazydog opened this issue Dec 24, 2019 · 2 comments

Comments

@Alwayslazydog
Copy link

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
Copy link
Author

@booxood Orz

@booxood
Copy link
Collaborator

booxood commented Dec 26, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants