Skip to content

npm warns about pnpm-only .npmrc settings in generated scaffolds #153

@Vheissu

Description

@Vheissu

Summary

Generated Aurelia 2 app/plugin scaffolds include .npmrc with pnpm-only config (shamefully-hoist, auto-install-peers). When users run npm install, npm prints warnings about unknown config keys. This happens for
both app and plugin templates.

Repro

  1. Scaffold any project:

npx makes aurelia my-app

  1. Run:

npm install

  1. Observe warnings:

npm warn Unknown project config "shamefully-hoist".
npm warn Unknown project config "auto-install-peers".

Expected

  • No npm warnings in a freshly generated project.

Actual

  • npm warns about pnpm-only config keys because .npmrc is always present.

Impact

  • First-run experience looks noisy/buggy.
  • Users think they misconfigured npm or the scaffold.

Proposed fix

  • Remove pnpm-specific settings from the default template.
  • Only create .npmrc with pnpm settings when pnpm is explicitly chosen during install.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions