Skip to content

bug: shell install command fails on npm >=12 #698

Description

@madkarmaa

What happen

Ran the shell install command and it failed:

npm error code EALLOWGIT
npm error Fetching packages of type "git" have been disabled
npm error Refusing to fetch "github:JuliusBrussee/caveman"
npm error A complete log of this run can be found in: /home/user/.npm/_logs/2026-07-11T14_01_09_335Z-debug-0.log

Reason

> npm -v
12.0.0
  • allow-git and allow-remote now default to "none"; set them to "all" (or "root") to install git or user-supplied tarball-URL dependencies.

Source

Fix

macOS · Linux · WSL · Git Bash

export NPM_CONFIG_ALLOW_GIT=all
curl -fsSL https://raw.githubusercontent.com/JuliusBrussee/caveman/main/install.sh | bash
unset NPM_CONFIG_ALLOW_GIT

Windows · PowerShell 5.1+

$env:NPM_CONFIG_ALLOW_GIT = "all"
irm https://raw.githubusercontent.com/JuliusBrussee/caveman/main/install.ps1 | iex
Remove-Item Env:NPM_CONFIG_ALLOW_GIT

Platform

  • Claude Code
  • Codex
  • Other: global (~/.agents)

Version / install method
Latest / shell install command

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions