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 has a bug #30

Open
xiaolizi9 opened this issue Nov 9, 2020 · 1 comment
Open

npm install has a bug #30

xiaolizi9 opened this issue Nov 9, 2020 · 1 comment

Comments

@xiaolizi9
Copy link

$ npm install --save imagemin-jpegtran

[email protected] postinstall C:\Users\23973\Desktop\公司项目\nanwudi-H5\node_modules\jpegtran-bin
node lib/install.js

‼ getaddrinfo ENOENT raw.githubusercontent.com
‼ jpegtran pre-build test failed
i compiling from source
× Error: Command failed: C:\Windows\system32\cmd.exe /s /c "./configure --disable-shared --prefix="C:\Users\23973\Desktop\公司项目\nanwudi-H5\node_modules\jpegtran-bin\vendor" --bindir="C:\Users\23973\Desktop\公司项目\nanwudi-H5\node_modules\jpegtran-bin\vendor""
'.' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���

at C:\Users\23973\Desktop\公司项目\nanwudi-H5\node_modules\bin-build\node_modules\execa\index.js:231:11
at processTicksAndRejections (internal/process/task_queues.js:97:5)
at async Promise.all (index 0)

npm WARN [email protected] requires a peer of eslint@^2.0.0 || ^3.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of eslint-plugin-vue@^1.0.0 || ^2.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

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.

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\23973\AppData\Roaming\npm-cache_logs\2020-11-09T05_37_17_181Z-debug.log

@Minori-ty
Copy link

I have the same problem

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