marko
marko copied to clipboard
installation is broken
Marko Version: 6.1.1
Details
$ docker run -it --rm node:slim npm init marko
Need to install the following packages:
[email protected]
Ok to proceed? (y) y
> npx
> "create-marko"
? Type your project n/root/.npm/_npx/ba91dde5859b4878/node_modules/degit/dist/index-688c5d50.js:14258
throw new DegitError(`could not find commit hash for ${repo.ref}`, {
^
DegitError: could not find commit hash for HEAD
at Degit._cloneWithTar (/root/.npm/_npx/ba91dde5859b4878/node_modules/degit/dist/index-688c5d50.js:14258:10)
at async Degit.clone (/root/.npm/_npx/ba91dde5859b4878/node_modules/degit/dist/index-688c5d50.js:14096:4)
at async downloadRepo (/root/.npm/_npx/ba91dde5859b4878/node_modules/@marko/create/dist/index.js:133:3)
at async exports.getExamples (/root/.npm/_npx/ba91dde5859b4878/node_modules/@marko/create/dist/index.js:72:3) {
code: 'MISSING_REF',
ref: 'HEAD'
}
Node.js v24.8.0
npm error code 1
npm error path /
npm error command failed
npm error command sh -c "create-marko"
npm error A complete log of this run can be found in: /root/.npm/_logs/2025-09-13T16_56_18_962Z-debug-0.log
I am also facing an issue after following the installation guide:
nvm use 22
Now using node v22.21.1 (npm v10.9.4)
➜ my-marko-app npm init marko -- -t basic
> [email protected] npx
> create-marko -t basic
✔ Type your project name · my-app
✖ npm install exited with code 127
Error: npm install exited with code 127
at ChildProcess.<anonymous> (/Users/myname/.npm/_npx/ba91dde5859b4878/node_modules/@marko/create/dist/exec.js:14:23)
at Object.onceWrapper (node:events:634:26)
at ChildProcess.emit (node:events:519:28)
at maybeClose (node:internal/child_process:1101:16)
at ChildProcess._handle.onexit (node:internal/child_process:304:5)