Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
505 views
in Technique[技术] by (71.8m points)

node.js - How to Solve NPM Install error while installing the gatsby-rehype-inline-images package

I am trying to set up the ghost cms locally, I am getting an error message while adding a package to the project. using the theme provided by Jamify for this ghost cms installation process

I tried clearing the cache using npm cache clean --force but still did not work

C:UsersRajatDasghost-localjamify-starter>yarn add gatsby-rehype-inline-images
yarn add v1.22.10
[1/4] Resolving packages...
info There appears to be trouble with your network connection. Retrying...
[2/4] Fetching packages...
info [email protected]: The platform "win32" is incompatible with this module.
info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
info [email protected]: The platform "win32" is incompatible with this module.
info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
warning " > [email protected]" has incorrect peer dependency "react@^16.4.2".
warning " > [email protected]" has incorrect peer dependency "react-dom@^16.4.2".
warning "gatsby > @reach/[email protected]" has incorrect peer dependency "[email protected] || 16.x || 16.4.0-alpha.0911da3".
warning "gatsby > @reach/[email protected]" has incorrect peer dependency "[email protected] || 16.x || 16.4.0-alpha.0911da3".
warning "gatsby > [email protected]" has incorrect peer dependency "react@^16.4.2".
warning "gatsby > [email protected]" has incorrect peer dependency "react-dom@^16.4.2".
warning "gatsby > [email protected]" has incorrect peer dependency "react@^16.4.2".
warning "gatsby > [email protected]" has incorrect peer dependency "react-dom@^16.4.2".
warning "gatsby > @reach/router > [email protected]" has incorrect peer dependency "react@^0.14.0 || ^15.0.0 || ^16.0.0".
warning "gatsby > @typescript-eslint/eslint-plugin > [email protected]" has unmet peer dependency "typescript@>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta".
warning "gatsby > eslint-plugin-graphql > graphql-config > @endemolshinegroup/cosmiconfig-typescript-loader > [email protected]" has unmet peer dependency "typescript@>=2.7".
warning "gatsby-plugin-netlify > [email protected]" has unmet peer dependency "webpack@>=4.4.0".
warning "gatsby-plugin-preact > @prefresh/[email protected]" has unmet peer dependency "webpack@^4.0.0 || ^5.0.0".
warning "gatsby-theme-ghost-members > [email protected]" has unmet peer dependency "react-is@>= 16.8.0".
warning "gatsby-theme-try-ghost > [email protected]" has incorrect peer dependency "[email protected]".
warning "gatsby-theme-try-ghost > [email protected]" has incorrect peer dependency "[email protected]".
warning "gatsby-theme-try-ghost > [email protected]" has unmet peer dependency "postcss@^8.0.5".
warning "gatsby-theme-try-ghost > gatsby-plugin-postcss > [email protected]" has unmet peer dependency "webpack@^4.0.0 || ^5.0.0".
warning "gatsby-theme-try-ghost > gatsby-plugin-postcss > [email protected]" has unmet peer dependency "postcss@^7.0.0 || ^8.0.1".
warning " > [email protected]" has incorrect peer dependency "[email protected]".
[4/4] Building fresh packages...
[10/13] ? mozjpeg
[-/13] ? waiting...
[-/13] ? waiting...
[-/13] ? waiting...
error C:UsersRajatDasghost-localjamify-starter
ode_modulesmozjpeg: Command failed.
Exit code: 1
Command: node lib/install.js
Arguments:
Directory: C:UsersRajatDasghost-localjamify-starter
ode_modulesmozjpeg
Output:
? getaddrinfo ENOTFOUND raw.githubusercontent.com
  ? mozjpeg pre-build test failed
  i compiling from source
  × Error: Command failed: C:WINDOWSsystem32cmd.exe /s /c "autoreconf -fiv"
'autoreconf' is not recognized as an internal or external command,
operable program or batch file.


    at C:UsersRajatDasghost-localjamify-starter
ode_modulesin-build
ode_modulesexecaindex.js:231:11

Can't figure out how to solve it. I am following guide by Jamify


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...