Skip to content

Installer fails on npm 12: EALLOWSCRIPTS from project-scoped --allow-scripts #132

Description

@demian85

Text from bot in #omo-help channel

demian85 — quick update on the npm v12 EALLOWSCRIPTS issue: typeey confirmed that the root cause is the LazyCodex installer internally calling npm ci with the --allow-scripts flag, which npm v12 flat-out rejects regardless of your .npmrc config. so the .npmrc fix was a dead end — sorry about the runaround.

workaround until a fix ships:
use Node 22 (npm 10/11) just for the install step:

nvm use 22
npx -y lazycodex-ai@4.17.0 install
nvm use default

this is a real bug in the installer that needs fixing upstream. if you have a GitHub account, filing it at https://github.com/code-yeongyu/lazycodex/issues with your npm version + the error log would help get it prioritized. the core fix is removing the banned --allow-scripts flag from the internal npm ci call

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions