dillonkearns / elm-pages-starter

Starter blog for elm-pages

Home Page:https://elm-pages-starter.netlify.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

npm install failed

ryo-imai-bit opened this issue · comments

Hi!
elm-pages looks really good! when I try it out, I faced issue.
detail is below.

Versions

macOS Big Sur 11.4

  • Node Version: v16.4.1
  • NPM Version: 7.19.1

Description

I cloned this repository and run npm install.
It fail with

$ npm install
npm ERR! code 1
npm ERR! path /Users/imairei/Documents/GitHub/sample_elm-pages/node_modules/favicons/node_modules/sharp
npm ERR! command failed
npm ERR! command sh -c (node install/libvips && node install/dll-copy && prebuild-install) || (node-gyp rebuild && node install/dll-copy)
npm ERR! info sharp Using cached /Users/imairei/.npm/_libvips/libvips-8.8.1-darwin-x64.tar.gz
npm ERR! gyp WARN install got an error, rolling back install
npm ERR! gyp ERR! configure error 
npm ERR! gyp ERR! stack Error: read ENETDOWN
npm ERR! gyp ERR! stack     at TLSWrap.onStreamRead (node:internal/stream_base_commons:211:20)
npm ERR! gyp ERR! System Darwin 20.5.0
npm ERR! gyp ERR! command "/Users/imairei/.nodebrew/node/v16.4.1/bin/node" "/Users/imairei/Documents/GitHub/sample_elm-pages/node_modules/.bin/node-gyp" "rebuild"
npm ERR! gyp ERR! cwd /Users/imairei/Documents/GitHub/sample_elm-pages/node_modules/favicons/node_modules/sharp
npm ERR! gyp ERR! node -v v16.4.1
npm ERR! gyp ERR! node-gyp -v v3.8.0
npm ERR! gyp ERR! not ok

I figured out this issue.
npm install worked with these dependencies.

  • Node v10.24.1
  • NPM 6.14.12

any help on how to solve this on Netlify?

@kingshalaby1 you'll likely get more help if you ask in the elm-pages channel on the Elm slack. Also, this is an old version of elm-pages, I recommend using a newer version.