gridsome / gridsome/gridsome

Gridsome install failed

Open
#1,630 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
8.5k
Forks
466
PR merge metrics
No merged PRs in 30d

Description

## Description

gridsome create test
❯ Clone https://github.com/gridsome/gridsome-starter-default.git 0.62s
❯ Update project package.json 0s
❯ Install dependencies
• Building fresh packages (4 of 4)
Error: Failed to install dependencies with yarn. Please enter test directory and install dependencies with yarn or npm manually. Then run gridsome develop to start local development.

Exit code 1
at ChildProcess. (/Users/nothing/.config/yarn/global/node_modules/@gridsome/cli/lib/commands/create.js:106:17)
at ChildProcess.emit (events.js:400:28)
at maybeClose (internal/child_process.js:1058:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:293:5)

**Other Project**: gridsome boilerplate base stuff work fine. "yarn add -D sass-loader@^10.1.1 sass" brake the application

...
[4/4] 🔨 Building fresh packages...
[6/7] ⢀ sharp
[-/7] ⢀ waiting...
[-/7] ⢀ waiting...
[-/7] ⢀ waiting...
error /Users/nothing/sites/designfabrik/node_modules/sharp: Command failed.
Exit code: 1
Command: (node install/libvips && node install/dll-copy && prebuild-install --runtime=napi) || (node-gyp rebuild && node install/dll-copy)
Arguments:
Directory: /Users/nothing/sites/designfabrik/node_modules/sharp
Output:
info sharp Detected globally-installed libvips v8.12.2
info sharp Building from source via node-gyp
gyp info it worked if it ends with ok
gyp info using node-gyp@5.1.0
gyp info using node@14.19.1 | darwin | arm64
gyp info find Python using Python version 3.9.12 found at "/opt/homebrew/opt/python@3.9/bin/python3.9"
gyp info spawn /opt/homebrew/opt/python@3.9/bin/python3.9
...

Machine: MacBook Pro 16" M1 pro
Node V: 14.19.1
yarn V: 1.22.18
npm V: 6.14.16

Paste the information here as shown by `gridsome info`

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce `gridsome create test` on the reported Mac M1 environment and start by inspecting `@gridsome/cli/lib/commands/create.js` around the dependency-install failure. Compare the `sharp` build output and the reported Node, Yarn, npm, and Python versions; done means the starter project installs successfully and can run `gridsome develop`.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, nodejs
Domain
build-system, cli
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.